publicradio
Member
Posted 2 years ago #
Hello,
I would like to remove these other options to search across only blogs where I'm a member, pages v posts, etc, and just have a search across all blogs, all content types (including a custom post type 'documents' if possible).
I'm fine hacking up the plugin if I need to. I'm fine changing form elements to hidden ones, which I've already done in fact. The biggest thing hanging me up right now is how to return both pages and posts.
Any help would be much appreciated, thanks.
sgelbart
Member
Posted 1 year ago #
You can do it, if anyone's has this problem post here and I'll post a solution...sorry being lazy right now :)
geekinesis
Member
Posted 1 year ago #
Hi
If you have a solution to search custom post types I would be grateful to hear it
Thanks
sgelbart
Member
Posted 1 year ago #
go to the plugin editor, open the shortcodes.php file and find the ms_global_search_page function. There I changed my $post_type variable line to look like the following:
$post_type = "( post_type = 'post' OR post_type = 'page' OR post_type = 'custom_post_type1' OR post_type = 'custom_post_type2')";
where custom_post_type1 and custom_post_type2 are my custom post types.
geekinesis
Member
Posted 1 year ago #