Created
March 22, 2013 03:53
-
-
Save spencejs/5218840 to your computer and use it in GitHub Desktop.
Include Tags In Wordpress Search
The codes works, BUT... I am using Divi theme and when I use this code, Divi shows its default header and footer on search results pages. Anyone got a workaround for this? Here is our dev site: https://ansicvpn.com/?s=renewal&post_type=courses. I've searched on Divi Help and even opened a thread but none seems to be working. Hoping to find a solution here. Help is much appreciated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Connum Thanks for the quick reply. I'm finding that even if I use your method, if I literally search just % signs like
%
or%%%
, it will return strange posts that don't even exist, some with weird titles and excerpts with actual code in them. The same thing happens if I search with a blank input. Something like 100% will query fine though with your method or the original method.I have it like this: