Support

Account

Home Forums Front-end Issues Change the order of custom fields in the front-end

Solved

Change the order of custom fields in the front-end

  • Hi, hope you can help.

    For simplicity, my page has been set up with fields in WP admin like so:

    custom field 1
    content…

    custom field 2
    content…

    custom field 3
    content…

    Problem – client wants ‘custom field 3’ to appear first (top of the page in the front-end) and wants to rearrange the order of the fields themselves in the future. How can I set this up? The only way I can think of is manually setting the order in the template e.g.

    <?php the_field('custom_field_3'); ?> (top of the page)
    <?php the_field('custom_field_1'); ?>
    <?php the_field('custom_field_2'); ?>

    The problem with the code above is that the client cannot rearrange the order themselves… What can I do to make this work?

    I look forward to your replies.

  • Hi @ig-pjc

    Perhaps you could look into using the repeater or flexible content fields?
    These fields provide an interface where the client can re-order blocks of content!

    Thanks
    E

  • Thanks very much Elliot, the repeater does the trick. Amazing plugin by the way 🙂

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

The topic ‘Change the order of custom fields in the front-end’ is closed to new replies.