Relevanssi Shortcode post_type=”posts” not working
-
Hello,
I’ve been using Relevanssi on HealthyWork.org for a few months to highlight search keywords in the result content. That works well.
Now I’m trying to use the Relevanssi shortcode [searchform post_types=”post”] to restrict the search form on the blog page (HealthyWork.org/healthy-work-blog/) to only search posts. But it’s not working.
Strangely, the regular shortcode [searchform] is working fine.
I’m currently using Relevanssi v4.4.1.
My site’s theme is Divi.
I’ve searched this forum for answers and tried the suggestions to no avail.
Here are some of my Relevanssi settings:
– dlm_download excluded from search
– category and post_tag indexed
– Custom fields: none (I’m not using any, that I know of)
– Index the post excerpt: yes
– Expand shortcodes: yesI’ve clicked “Index unindexed posts” already and clicked “Build the index” several times”
I also tried unchecking “Expand shortcodes” and rebuilding the index and that didn’t work.
I tried to find a search.php or searchform.php or query_posts() in tons of different theme files (Divi), but didn’t find anything like that.
Thank you for your assistance.
Amy
The topic ‘Relevanssi Shortcode post_type=”posts” not working’ is closed to new replies.