Forums › Forums › Search & Filter Pro › Issue with multisite
Tagged: multisite
- This topic has 12 replies, 2 voices, and was last updated 6 years, 11 months ago by Anonymous.
-
Anonymous(Private) December 5, 2017 at 11:36 am #145699
Hi,
is there a specific configuration for using your plugin in multisite?
I’ve created a custom post type that is used on all the sites but with differents posts in each sites.
The plugin works fine with the first site ( blog_id=1) but with the others site the search filter give the results from the custom post site n° 1.How can I have the plugin filter giving results from his own site.
Sorry if i’m not really clear , i’m french
Best regardsPatrice Coaoclo
Anonymous(Private) December 5, 2017 at 1:29 pm #145741It’s actived at Network level and there’s one set cache tables per site
When I print the $searchfilter in search-filter-pro/public/class-search-filter.php i get this
[WP_FILTER] =>
[post_updated_count:Search_Filter_Post_Cache:private] => 0
[cycle_error_amount:Search_Filter_Post_Cache:private] => 120
[cache_table_name] => solidarauto_25_search_filter_cache
[term_results_table_name] => solidarauto_25_search_filter_term_results
[table_name_options] => solidarauto_25_options
[option_name] => search-filter-cache
)but when I print $this->cache in search-filter-pro/public/includes/class-search-filter-query.php
I get this wich are params from the blog_id( 1)
[table_name] => solidarauto_search_filter_cache
[results_url] => http://solidarauto.org/nos-voitures-a-vendre/Anonymous(Private) December 5, 2017 at 1:42 pm #145744When I create a new Search form in a site and copy the shortcode in the page results it doesn’t work, I get a blank page. There’s only the seacrh form created in the site id= 1 that works.
When I use the shortcode from site id=1 and copy it in a page of an another site I get results but there are not the results I want obviously.Trevor(Private) December 5, 2017 at 2:38 pm #145760Are you able to test something for me? A simple test. Have a couple of posts in Site 1 and the other site and add some categories to them. Make a simple search, using the shortcode display results method, make two pages, one in each site, for the form and results shortcodes. Does that keep the posts in each site’s results correctly?
Anonymous(Private) December 5, 2017 at 2:52 pm #145764I created two new posts in a new site wich has been cloned. I created two new categories for each post. I created a new search form and a new page for the form and results and I get a blank page.
I did the same for the site 1 and all is right.The new sites are cloned with the plugin NS Cloner – Site Copier
-
AuthorPosts