Exclude Some Sites
-
While I am aware that editing a plugin can be dangerous, because your edits can be wiped out in updates, here’s an answer to a question I saw (and had myself) without any answers …
How do I exclude some sites on my network?
Go to shortcodes.php
Find the following line. It should appear four times.
if(( $blogid != $s->blog_id ) && ( $s->post_title != $SearchPageTitle ))Replace this line with:
if(( $blogid != $s->blog_id ) && (( $s->blog_id != ‘9’ ) && ( $s->blog_id != ’14’ )) && ( $s->post_title != $SearchPageTitle ))This will exclude blogs 9 and 14
(( $s->blog_id != ‘9’ ) && ( $s->blog_id != ’14’ ))
Inside the outer parenthesis, add one of these for each blog you’ll exclude:
( $s->blog_id != ’14’ )
Replacing the 14 with the blog_id you want to exclude. Remember to place && between each of them.
- The topic ‘Exclude Some Sites’ is closed to new replies.