BuddyDev

Search

mediaPress shortcode status=friendsonly returning non-friends media

  • Participant
    Level: Master
    Posts: 279
    Richard Foley on #20260

    hi Brajesh,

    opening this again, (except I can’t so I’m making a meta-bug-report here, hope that’s ok 🙂

    I’m using a mediaPress shortcode to pull a selection of “friends” images onto a page, with pagination. The results vary depending on the user. The results returned include media from non-friends. I think this is related to the bug I recently reported with regard status=public returns varying results.

    https://buddydev.com/support/forums/topic/mpp-list-media-statusfriends-returns-everything/

    https://buddydev.com/support/forums/topic/mediapress-shortcode-returning-strange-results/

    I think the confusion is due to me explaining one part of the puzzle, rather than all of it. The code I was using was the code you provided in one of the tickets above where “status=friendsonly”. I think this had a side-effect on the other by being mapped to the mpp_shortcode_list_media_DEFAULTS action.

    What I’m trying to do is to have 3 pages where the media status is:

    1. public

    2. all-logged-in-users (members only)

    3. friends_only (from_MY_friends)

    Is what I’m trying to explain, clear?

    R.

You must be logged in to reply to this topic.

This topic is: not resolved