BuddyDev

Search

[Resolved] How can i show only 10 images in a row without pagination?

  • Participant
    Level: Initiated
    Posts: 13
    Benny on #52454

    Hi support,

    sorry, but i can´t find a suitable shortcode.

    I want to show the 10 newest images in a row, but WITHOUT a pagination?

    How can i manage that?

    Many thanks for help

    Benny

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2985
    Ravi on #52464

    Hello Benny,

    Welcome to the BuddyDev Forums. MediaPress does have a setting with the name “How many media per row?”. You can locate it under MediaPress > Settings > Theming > Display Settings with a try with the value 12. it will list 12 media per row. Please give it a try.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 13
    Benny on #52465

    Many thanks Ravi for help,

    but if i will do that change, all my galleries stops at 12 images.

    What i need is a complete gallery which i will manage with the shortcode, thats not the problem.

    And on my landingpage i want to show only a row of the latest 10 images. Why isn´t that possible with another shortcode?

    BR
    Benny

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2985
    Ravi on #52467

    Hello Benny,

    Try the following shortcode. List all gallery media per row 12 media items

    
    // Replace gallery_id with your gallery id.
    [mpp-list-media gallery_id="92" nopaging=1 column=12]
    
    

    PS: nopaging: Please avoid it as It can lead to degraded performance.

    Shortcode documentation: https://buddydev.com/mediapress/shortcodes/mpp-list-media/

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 13
    Benny on #52468

    Thanks Ravi, but no chance.

    I have different groups. All of them has a wallpaper-paper-photogallery.

    1. How can i identify the galleries_id?
    2. How can i show only the newest ones of each gallery? Is it https://www.xxxxxxx.com/media/wall-photo-gallery-7/?
    3. With [mpp-list-media gallery_id=”1,2,3,4,5″ nopaging=1 column=12] i see all the actual images, but not only the 10 newest.

    By the way, i would pay for that job, to show only the X-newest images showing on my landing page without pagination!

    Hope you could help. Thanks so much!

    Benny

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2985
    Ravi on #52469

    Hello Benny,

    For groups media use component=”groups” and for recent media orderby=”modified” attribute for photo media only you can use type=”photo” as well for e.q.

    [mpp-list-media component=”groups” orderby=”modified” nopaging=1 column=12]

    try like this.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 13
    Benny on #52470

    Many thanks again Ravi,

    but your shortcode shows again all the images not only the last 5 or 10. O.K. pagination is off, but thats all.

    Why is it so difficult to build a shortcode whichs shows only the last or newest X images in a row as a teaser, without the pagination numbers?

    Do you understand the problem? If i don´t want to show the pagination on my landingpage for example in the middle of the page. If somebody clicks on the pagination number, the user will be jumped to the header of the site. He stays not at the media part.

    And if somebody wants to teaser only the last images anywhere there is no option for that.

    Many regards
    Benny

  • Participant
    Level: Initiated
    Posts: 13
    Benny on #52471

    By the way, do i have to add more parameter after “modified” oder “date”?!?

    ‘modified‘ – Order by last modified date.
    ‘date‘ – Order by date.

    Can you give me please an example for that?

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
    Brajesh Singh on #52474

    Hi Benny,
    Thank you for the replies.
    I will assist you in place of Ravi.

    Let me get back to your original question

    I want to show the 10 newest images in a row, but WITHOUT a pagination?

    In order to assist you with it, I need to know the way you are using MediaPress and your intention for this code.

    In your reply
    https://buddydev.com/support/forums/topic/how-can-i-show-only-10-images-in-a-row-without-pagination/#post-52468

    You did specify the details but I am unable to understand it properly.

    – Do you want to list most recent uploaded images from all group using shortcode
    – or Do you want list the most recently uploaded image to the current group
    – Or do you want to list most recently uploaded image from a specific gallery of a group?

    Please help me understand and I will share the shortcode.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 13
    Benny on #52475

    Hello Brajesh,

    thanks again.

    Okay i want to specify my needs.

    1. On my website i have a own gallery site where i show all the group images which were uploaded. On this site i have this shortcode [mpp-list-media show_creator=1 per_page=20 column=5] and it works perfect.

    2. On the homepage i want to show the X-newest images of all group images as a teaser for new users. This image row should come without pagination numbers.

    Thats all, it sounds not so difficult, but i can´t manage a shortcode for No.2

    AND by the way this code works perfectly for me too > [mpp-list-media per_page=6 nopaging=0 column=6]. It shows 6 images in 6 columns, BUT with a pagination :-(. But if i set nopaging=1, there a again ALL the images, what i don´t want.

    Kind regards

    Benny

You must be logged in to reply to this topic.

This topic is: resolved