BuddyDev

Search

[Resolved] mpp-show-gallery display by creator id

  • Participant
    Level: Initiated
    Posts: 6
    Matteo on #33338

    Hi,

    Is it possible to display a gallery depending on the user creator? I am trying this hsortcode but it is not working.

    [mpp-show-gallery user_id=7 lightbox=1]

    Thank you.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #33341

    Hello Matteo,

    Thank you for posting. Please take a look to the following reference and let me know if you needs furthur assistance.

    https://buddydev.com/mediapress/shortcodes/mediapress-gallery-listing-shortcodes/#user-parameters

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 6
    Matteo on #33367

    Hi Ravi,

    I have tried this shortcode but it displays just the thumbnail image of the gallery right?
    I would like to display all the images directly of one defined gallery. It works with the gallery Id but that one is hard to set as variable since galleries are generated automatically in my site.

    Thank you again for great plugin and support!

  • Participant
    Level: Initiated
    Posts: 6
    Matteo on #33368

    Also I have tried creating a query

    if ( $the_query->have_media() ) :
    <?php while ( $the_query->have_media() ) : $the_query->the_media(); ?>
    ..etc 

    $args= array($user_login); For example but I am not confident that I could create a query that completely excludes unwanted users media … for example if I query by id (4) it would probably show also for user (14) and (40) I think. And by name the same problem appear

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #33374

    Hello Matteo,

    Thank you for the acknowledgement. Are looking to show all media items for a given user?. If yes, Then you can use ‘[mpp-list-media]’ as a shortcode it has a parameter same as gallery i.e. “user_id” which will list all media of a given user. For complete reference:

    https://buddydev.com/mediapress/shortcodes/mpp-list-media/#user-parameters

    Please do let me know if it helps or not.

    Regrads
    Ravi

  • Participant
    Level: Initiated
    Posts: 6
    Matteo on #33394

    Perfect ! Thanks again.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #33395

    Hello Matteo,

    Thank you for the acknowledgement.

    Regards
    Ravi

The topic ‘ [Resolved] mpp-show-gallery display by creator id’ is closed to new replies.

This topic is: resolved