Support

Account

Home Forums Front-end Issues Display limited number of repeater fields

Solved

Display limited number of repeater fields

  • Hi There
    I am using the repeater field and created a page with logos of clients.
    in the editor I am able to add logos using the repeater field.
    Now, I would like to show 8 logos only (preferably 8 latest logos or random)
    in my homepage template.

    Checking the documentation I know I call pull a custom field from another page using the following example code:

    <?php the_sub_field('client_logo',57);?>

    it works perfectly but it shows all my logos.
    I would like to show only 8.
    anyway I can limit the number fields that I’m pulling from the clients logos page?

    Thanks

  • Found my answer here:
    http://support.advancedcustomfields.com/forums/topic/limiting-results-from-repeater-field/

    works like a charm!
    hope it helps anyone.
    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.