Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove certain Categories from Global Activity Stream


  • jordashtalon
    Member

    @jordashtalon

    In the Activity Stream it shows all my latest blog posts, however I want to not show certain blog posts in the Activity Stream, how would I remove a specific category from the activity stream?

    Thanks for any tips.

Viewing 3 replies - 1 through 3 (of 3 total)
  • nothing is recorded in the activity stream for blog post categories – there is a reference to the blog_id -> item_id and post_id -> secondary_item; maybe some sort of custom code to look-up and determine the category and not display it (via has_activities filter)?

    or; I don’t know if this is possible – try blocking the db update via the action save_post with a higher priority function to remove this action (since save_post will pass along the $post_id and $post – then check for category and remove).
    add_action( 'save_post', 'bp_blogs_record_post', 10, 2 );


    jordashtalon
    Member

    @jordashtalon

    Wow that sounds a bit harder to do than I thought, I guess i’ll just quickly delete the post notification off of my Wall before anyone is the wiser :)

    I’ll try out some of your ideas but it might be a bit over my head, thanks for the help.


    Boone Gorges
    Keymaster

    @boonebgorges

    I would take @nuprn1‘s second suggestion, as it means far fewer hits to the db than pulling up every post every time the activity stream is loaded.

    (Side note – boy, these filtering posts just keeping coming up, huh? Hmmm….)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove certain Categories from Global Activity Stream’ is closed to new replies.
Skip to toolbar