Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Excluding certain blogs from bp_has_site_blogs() function


r-a-y
Keymaster

@r-a-y

Hey Burt (and Andy),

The latest code update fixed the rogue, empty blog listing.

However, now I’m getting blog id #1 listed all the time, even though I excluded it in the $my_excluded array.

FYI, I have the following listed in the $my_excluded array:

$my_excluded = array(1,2);

Blog id’s 1 and 2 happen to be my only two blogs on my testbox at the moment, so I shouldn’t be seeing any listings under the “Blogs Directory” (I don’t see blog id #2 so that’s good!).

Two other things I’ve noticed:

  1. The “Random Blogs” section will continue to show either of the excluded blogs depending on the randomness.
  2. Clicking on the letter whose first letter matches the excluded blog in the alphabetical listing will show the excluded blog listing.

Sorry to have complicated things! Probably a pain to debug!

Skip to toolbar