-
AuthorPosts
-
February 24, 2019 at 9:47 am #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!
February 24, 2019 at 11:20 am #1070877Hey 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,
VictoriaFebruary 24, 2019 at 2:23 pm #1070913Sure, see below.
February 26, 2019 at 2:18 pm #1071781Hi 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,
VictoriaFebruary 26, 2019 at 2:18 pm #1071783Hi 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,
VictoriaFebruary 27, 2019 at 3:18 am #1072121Thanks 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?
March 2, 2019 at 6:34 pm #1073668Hi 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,
VictoriaMarch 4, 2019 at 1:46 am #1074106Hi 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.
March 7, 2019 at 11:33 pm #1076135Hi,
Why it is not, if you load the file from a child theme?
Best regards,
BasilisMarch 8, 2019 at 3:04 am #1076198Hi Basilis. I don’t understand your reply. I am using a child theme.
March 12, 2019 at 7:59 am #1077695Hi,
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,
BasilisMarch 12, 2019 at 8:07 am #1077706Doesn’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);
March 21, 2019 at 5:48 pm #1081490Hi,
No, there should be no problem you wouldn’t need to do anything else.
Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.