Skip to:
Content
Pages
Categories
Search
Top
Bottom

Collecting Activity ids and displaying them?

  • Avatar of designnz
    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)
  • Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Yes.

    Where would your second loop live ?

    Avatar of designnz
    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.

    Avatar of shanebpdev
    shanebp
    Participant

    @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)

You must be logged in to reply to this topic.