Home › Forums › Add-ons › Repeater Field › Single page for each repeater item › Reply To: Single page for each repeater item
I have done something similar recently with a publication system for a client. Each publication can have multiple pages. I used the WP built in system that allows posts to have multiple pages, in a way. I used it because it allows me to create a unique URL for each one because WP lets me add a page number to the URL.
What I do on the publication intro page is generate links for each page in the publication like
In my publication template I see what page is requested
$page = 0;
if (preg_match('#/([0-9]+)/?$#', $_SERVER['REQUEST_URI'], $matches)) {
$page = intval($matches[1]);
}
if $page == 0 I show the intro page. If $page != 0 then I show the content from the right row of the repeater.
~JH
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.