Skip to:
Content
Pages
Categories
Search
Top
Bottom

Collecting Activity ids and displaying them?


  • designnz
    Participant

    @designnz

    Is it possible to have a selection of activity ids ( in my case these will be custom posts in the activity stream) and display them accordingly in a different loop?

     

    Thanks

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

  • shanebp
    Moderator

    @shanebp

    Yes.

    Where would your second loop live ?


    designnz
    Participant

    @designnz

    Hi @shanebp, thanks for the reply. Im wanting to have a page where my users can be curators and have collections of custom posts (via activity_id). It will fall under its own page outside of buddypress with a special activity page for displaying items.


    shanebp
    Moderator

    @shanebp

    >a page where my users can be curators and have collections of custom posts

    CPs that they created ? Or created by anyone ?

    Usually a profile extension is used for this.

    But you say ‘outside of buddypress’ so you mean a WP page… ?
    Then, because you want it driven by activity_ids, write a custom query.
    Use each activity_id to find the user_id in the activity table, look for posts by that member in the posts table and show the results in a loop.
    Use 2 queries if you can’t write a JOIN.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Collecting Activity ids and displaying them?’ is closed to new replies.
Skip to toolbar