Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Excluding certain blogs from bp_has_blogs() function for 1.2


r-a-y
Keymaster

@r-a-y

Add to the “if” conditional.

<?php while ( bp_blogs() ) : bp_the_blog(); if(bp_get_blog_name() != "BLOG NAME YOU WANT TO EXCLUDE" && bp_get_blog_name() != "SECOND BLOG NAME TO EXCLUDE") : ?>

If you have a ton of blogs, you might want to use an array.

Skip to toolbar