Support

Account

Forum Replies Created

  • I realised this approach was dumb and just used a custom post type instead with a post object selector on the page I need it to display on.

  • Good questions – sorry it’s not clearer. I’ve realised that the above code doesn’t need modified. I actually need a new block of code for the page template to display the values from the repeater row.

    I’ll try to explain more clearly:
    – There is a repeater block on the options page. Let’s say they are 10 rows, and each row has 4 values.
    – I want the user to be able to go to Page X, and select 1 of those rows to display on that page.
    – The problem is that I’ve opted to use a dynamically populated select to choose the row (code above). The select is populated with only 1 value, so I’m not sure how to return all 4 values of the row.
    – I’m currently using <?php the_field(‘contact’); ?> to display 1 value on Page X.

    I probably need to do something like.
    – Loop the repeater
    – Based on the $field[‘choices’] selection, only display items which match that row

    Or maybe I’m miles off and shouldn’t be trying to use a select?

    Hopefully this helps explain! Thanks a lot for looking.

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