Skip to:
Content
Pages
Categories
Search
Top
Bottom

Posts of the main blog in site wide activity


  • James
    Participant

    @janismo

    hi,

    is it possible not to display posts of the main blog, but allow only posts from the network blogs to appear in site wide activities?

    thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Roger Coathup
    Participant

    @rogercoathup

    Yes.

    you will need to rework your sitewide activity loop code, adding a simple check for blog post activity from the main blog, and skipping processing as appropriate:

    Something like: `if ((bp_get_activity_type == ‘new_blog_post’) && (bp_get_activity_item_id() == 1)) continue; `


    paulhastings0
    Participant

    @paulhastings0

    Alternatively in your main blog’s privacy settings settings you can hide it from search engines. That’ll prevent your blog from being indexed and keep the posts from appearing on the sitewide activity stream. Unfortunately it also means that your site won’t show up on Google or Yahoo because of it. :P

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Posts of the main blog in site wide activity’ is closed to new replies.
Skip to toolbar