Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filter Activity by Category


  • superp777
    Participant

    @superp777

    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)

  • Prashant Singh
    Participant

    @prashantvatsh

    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

    @superp777

    Thanks, Prashant!


    Prashant Singh
    Participant

    @prashantvatsh

    Welcome 🙂

    @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


    Prashant Singh
    Participant

    @prashantvatsh

    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