Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filter Activity by Category

  • @superp777

    Participant

    Hello,

    Is there a way to filter the activity stream by post category id?
    We’ve got many posts on the website and try to filter out updates
    applicable only to post suited for the private community.

    Thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • @prashantvatsh

    Participant

    Hi,

    Please try this: https://gist.github.com/jmdodd/1486717

    We just need to change the category/categories here as per our own names. They have used ‘exclude-me’, so in place of this, you can write your own.

    Thanks

    @superp777

    Participant

    Thanks, Prashant!

    @prashantvatsh

    Participant

    Welcome 🙂

    @gregthebuzz

    Participant

    @prashantvatsh – very nice !!!

    How could i adapt this to HIDE rather than delete a WP Blog Post category from the activity stream?

    Logic I want to try to achieve is to allow users to not see posts from a specific category in their activity stream – pretty much like facebook allows users to unfollow news

    @prashantvatsh

    Participant

    The given code only hides posts from the specific category in the sitewide activity stream but it will be saved in the activity table. So you can test that with your condition.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar