Excluding certain blogs from bp_has_blogs() function for 1.2
We have been trying to exclude certain blogs from our MU2.9.1/BP1.2 setup where we have used several sub-blogs as extensions of the main blog more like sections. Basically worked as a CMS. So we need to exclude these ‘blogs’ from the directory listings and any other instances, default or custom.
bp_has_blogs(bp_query_string(‘blogs’)) for the directory instance
bp_has_blogs() for some others and any custom
we’ve been trying the available arg and tried bp_has_blogs(‘type=active&something) && !bp_has_blogs(‘user_id=1′) but doesn’t work and the reverse bp_has_blogs(‘user_id=1′) does work if I only wanted to show just user_id 1 blogs. don’t quite need that.
we also tried listing, bp_has_blogs(‘user_id=1, 3,4′) and that doesn’t work fully for some reason. Don’t want to do that anyway since its not very practical.
So any suggestions on what does work? would be great if we could exclude the user_id with bp_has_blogs(exclude=1) or even exclude blog_ids with bp_has_blogs(exclude=1,4,5).
*Imagine the same idea to exclude would be helpful for has_members to exclude admin member and test profiles if needed…but we’ll carry that over to a new thread so we can focus on excluding admin blogs here.
The topic ‘Excluding certain blogs from bp_has_blogs() function for 1.2’ is closed to new replies.