Home Forums ACF PRO Change order of fields in a widget


Change order of fields in a widget

  • Hi Guys,

    I have a widget where besides ACF fields i have fields added the usual way, input and textarea HTML tags. All ACF fields are automatically added below the HTML fields, is there an option to change the order? I want to make some ACF field appear before the regular HTML input field.

  • No, this cannot be done. ACF uses the hook in_widget_form to add custom fields and this is the only hook available in WP for adding custom fields to a widget. This action is called after the standard widget fields are shown.

  • @hube2

    Hi John,

    I thought it hooks into the form function. Perhaps i’ll use JQ to for this. Thank you.

  • If anyone need a solution, i’ve used one JQ line:

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

The topic ‘Change order of fields in a widget’ is closed to new replies.