Indexing shortcode content problems
-
Hi,
I have a strange problem with shortcodes.
I have various shortcodes defined in my functions.php. Some are Enclosing and some are Self-Closing.
In Relevanssi, if I check Expand Shortcodes:
– A page whose only content is from a Self-Closing shortcode is missing from results.
– A page that has normal content as well as a Self-Closing shortcode is missing from results, regardless of whether you search for the normal content or content inserted by the shortcode.
– A page with an Enclosing shortcode is indexed and found – both content inside and outside of the shortcode.If I uncheck Expand Shortcodes:
– A page whose only content is from a Self-Closing shortcode is found.
– A page that has content as well as a Self-Closing shortcode is found, but only the normal page content, not the shortcode inserted content.
– A page with an Enclosing shortcode is found – but only if searching for mornal apge content, content within the shortcode is not found.I really can’t work out what is going on here… Can anyone offer a solution or ideas on how to debug this?
My best guess is that the handling of self-closing shortcodes is off – but maybe it’s to do with something in my setup?Thanks.
- The topic ‘Indexing shortcode content problems’ is closed to new replies.