The field group position setting of ‘High (after title)’ doesn’t seem have any effect on front-end forms, is there any way to do this. I imagine it would be easy to do on a front end form than a back end form.
The front end and back end has a different layout thus the options on the backend won’t affect the front end. What you can do is to move the content field to the bottom of the field group. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/moving-wp-elements-content-editor-within-acf-fields/. That article is talking about moving WordPress’ elements, but I believe you can modify it for the front end too. Also, please add the script to your front end instead of using the “acf/input/admin_head” hook.
That’s a bit of an ugly solution to be honest, i’d rather be able to just render the fields in the required order but looking at the code it seems like they are ordered that way cause the title and content fields are added to the array first. All it really needs is a filter hook on $fields before displaying them and it would be easy but there’s doesn’t seem to be any hooks on the front-end.
As you have figured out, I’m afraid you need to move it by using JS code. If you want to have a filter to do it, you can always submit a feature request by opening a new ticket here: https://support.advancedcustomfields.com/new-ticket. That way, your request will be passed directly to the plugin author.
Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘Field group position’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users