WordPress.org

Ready to get started?Download WordPress

Forums

Advance WP Query Search Filter
Mutlisite usage? (2 posts)

  1. Burke Ingraffia
    Member
    Posted 1 year ago #

    I would like to use this plugin to search an entire WP multisite network, and I will probably try to use one of two methods to alter the code:

    1. Use switch_to_blog() to cycle through every subsite looking for the same variables (post type, meta, custom field, etc.)

    or

    2. Change the query function in the plugin to look in all post tables of all multisites

    Which would be the more elegant and easier way to customize this plugin? I thought I would ask before I went down the wrong road.

    Thanks,
    Burke

    http://wordpress.org/extend/plugins/advance-wp-query-search-filter/

  2. TC.K
    Member
    Plugin Author

    Posted 1 year ago #

    In my opinion neither both of them is appropriate. This plugin never intended for multisite. It will have a lot of thing you need to edit the plugin.

    It would be better if you create your own script/plugin for this. It is easier then customize this plugin.

    For reference you can goto here. I never try this, but from given example, the code seem promising.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic