Home › Forums › Add-ons › Repeater Field › recent post acf repeater › Reply To: recent post acf repeater
Ah I see..
you can provide the have_rows()
function with a second parameter which is your portfolio pages ID.
//if 2 is the ID of your portfolio page
<?php if( have_rows('recent_project', 2) ): ?>
<div class="row-full-width mb">
<?php while( have_rows('recent_project', 2) ): the_row();
inside the while loop you no longer need to provide the ID.. just use the fields as normal.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.