Home Forums General Issues Displaying field data on multiple pages


Displaying field data on multiple pages

  • Hey all,

    I’m looking for a way to have the same field data displayed on two separate pages with a singular method of input in the WP dashboard, whats the best way of approaching this?

    In this specific scenario I have a Bootstrap card inside an ACF repeater. It displays four cards. The same card content is displayed on both the Contact and Locations pages of the site. I don’t really want to have to ask the client to input the same information on two different pages, which at the moment they do, they have to go into both pages in the WP admin to input the card content.

  • If you have ACF Pro, create an options page to hold the repeater.

    If not then on the second page where you want to show the repeater use the post ID from the other page.

    Let’s say for example that the post ID of the contact page is ‘1234’

    On the locations page you would

    if (have_rows('repeater-name', 1234)) {
      while (have_rows('repeater-name', 1234)) {
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Displaying field data on multiple pages’ is closed to new replies.