Home › Forums › Add-ons › Flexible Content Field › Pagination › Reply To: Pagination
Hi @pixaro
I see, so this question is not specific to the WYSIWYG field? That is where your question became confusing.
I would create a layout in your flexible content field called page_break.
Then in your template, within the flexible content loop, create a counter variable which starts at 1 and gets increased each time the page_break layout is used.
Then, you can look at the $_GET param “page” and match it to your counter variable value. If the value does not match, use a ‘continue’ statement to ignore the current loop’s layout.
Therefore, if you had &page=2 in your URL, your loop would only show layouts which appear after the first ‘page_break’ but before the second.
I hope that helps
Thanks
E
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.