Support » Plugin: Multisite Global Search » [Plugin: Multisite Global Search] return all blogs pages, posts and maybe even custom post types

  • Resolved publicradio

    (@publicradio)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can do it, if anyone’s has this problem post here and I’ll post a solution…sorry being lazy right now 🙂

    Hi
    If you have a solution to search custom post types I would be grateful to hear it

    Thanks

    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.

    That’s great thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Multisite Global Search] return all blogs pages, posts and maybe even custom post types’ is closed to new replies.