cmdshiftdesign
Member
Posted 4 months ago #
I have a custom post type defined called "works".
I would like my search results to return EXCLUDING all pages and all posts with in the custom post type.
This is not achievable using Plugins like Simple-Exclude or Search-Everything... and I would prefer to accomplish this WITHOUT adding a plugin.
I might not be understanding you properly but on the off chance that I am you can just include exclude_from_search => true when you register your post_type.
cmdshiftdesign
Member
Posted 4 months ago #
That worked! I had done that earlier and it wasn't working.. but i suspect I had a typo i was overlooking :/
CHEERS!
Cool. Glad you got it working.