Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1070844

    Hi,

    I am having the same issue as described at https://kriesi.at/support/topic/strip-shortcodes-in-searchresults/, but I am not using my own excerpts. Check out the first result at https://www.c3s.ie/?s=school. I don’t want to see the following:

    [/av_icon_box]
    [/av_one_third][/av_section]

    If it helps, here is the actual content from the Secondary School Resources post, pulled from the database: https://my.cl.ly/content/81ce30a5cfd1

    Using latest WP and Enfold 4.5.2 (can’t update to 4.5.4 as mentioned in another ticket). Please advise, thanks!

    #1070877

    Hey nothin7,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1070913

    Sure, see below.

    #1071781

    Hi nothin7,

    Please refer to solutions posted here:
    https://kriesi.at/support/topic/strip-short-codes-from-products-in-search-results/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1071783

    Hi nothin7,

    Please refer to solutions posted here:
    https://kriesi.at/support/topic/strip-short-codes-from-products-in-search-results/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1072121

    Thanks Victoria. I saw that post, and I learned that the first solution is already part of Enfold core, and the second solution is for wanting to maintain the content inside the shortcodes. I don’t need the content inside the shortcodes; I just want the ugly shortcodes not to appear, and I’d prefer to avoid RegEx for performance reasons. Is this not a bug, given that I am using the theme’s built-in shortcodes?

    #1073668

    Hi nothin7,

    I think it is a complex issue and there is no quick and easy fix at this point. Shortcodes should be interpreted and not shown, I do not understand why it does not happen on your end. You might want to show just excerpts if it does not work on your end.

    Best regards,
    Victoria

    #1074106

    Hi Victoria,

    I have now tried both solutions on the post you mentioned, and the shortcodes still appear. Furthermore, the “show just excerpts” solution I saw referred to the Search Relevance plugin, which I am not using. How would “show just excerpts” be used in a default situation like mine? Any plans to get this working with the new WordPress 5 editor?

    For now I am manually doing:

    $content = str_replace('<p>[/av_icon_box]</p>
    <p>[/av_one_third][/av_section]</p>', '', $content);

    But this is obviously not future proof.

    Thanks.

    #1076135

    Hi,

    Why it is not, if you load the file from a child theme?

    Best regards,
    Basilis

    #1076198

    Hi Basilis. I don’t understand your reply. I am using a child theme.

    #1077695

    Hi,

    So not sure why you are saying it is not update proor? Maybe I am missing something and I am sorry for this

    Best regards,
    Basilis

    #1077706

    Doesn’t my solution seem like a hack, likely to break in the future since we haven’t addressed the source of the problem?

    $content = str_replace('<p>[/av_icon_box]</p>
    <p>[/av_one_third][/av_section]</p>', '', $content);
    #1081490

    Hi,

    No, there should be no problem you wouldn’t need to do anything else.

    Best regards,
    Basilis

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.