Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Detect if this is the main blog


Sgrunt
Participant

@sgrunt

if possible i’d like to ask another question:

i want to show in the main blog the recent post from ALL blog, and in the sub blogs only the post from that SINGLE blog.

the if condition is ok, and the main blog call all blogs recent posts:

$posts = bp_blogs_get_latest_posts( null,10 ) ?>

it is working fine for the main blog, now i must think to sub blogs. How can i edit it for showing only the current blog recent posts changing only a line?

Skip to toolbar