Reply To: Problem with multisite?

#1479

Ernest Marcinko
Keymaster

Nope, it should be the other way around. I guess they must have changed something in the wordpress core with the latest minor upgrade. On my test server it shows differently.

I guess then my first solution won't work in this case 🙁 You should revert back the changes you made on the shortcodes.php file.

Do you know the blog ids of your sites? If so, then you can still use the same template for each site, and create an if statement to display the corresponding search like this:

<?php 
  $_blog_id = get_current_blog_id();
  if ($_blog_id=1) {
     //if the blog id is 1, show the search with id 1
     echo do_shortcode('[wpdreams_ajaxsearchpro id=1]');
  } else if($_blog_id=2) {
     //if the blog id is 2, show the search with id 2
     echo do_shortcode('[wpdreams_ajaxsearchpro id=2]');
  } else if($_blog_id=3) {
     //if the blog id is 3, show the search with id 3
     echo do_shortcode('[wpdreams_ajaxsearchpro id=3]');
  } 
  /* Else if statements for each blog id */
?>

After inserting this you can add as many else if statements as you want, just change the numbers to the corresponding blog id and to the corresponding search id.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)