Exclude blog in plugin sitewide tags

This post still about wordpress multisite.. i’m using plugin sitewide tags.. that plugin pull all post from network side include your main blog post into homepage. but i wanna exclude post from my admin blog. so my admin blog just only view all post from network site (multisite). . and this is how to exclude my admin blog. i gave you an example. my author admin is adminblog.

here is the algorithm:

1. get author name

2. if the post are not from adminblog, then view in homepage

here’s the code:

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php $authorname=get_the_author();   //get author name
if($authorname!=”adminblog”) {


<?php } endwhile; ?> //close if

hope you enjoy my post.. 🙂


Your email address will not be published. Required fields are marked *