Support

Account

Home Forums Backend Issues (wp-admin) Registering child category when publishing a post

Solved

Registering child category when publishing a post

  • Hi there,
    I have a problem with categories.

    I have a custom post “shoes”, with advanced custom field.
    When creating a new “shoes” post, the user can chose a brand (radio button), Then he can enter a model filling a text input.

    The post are then filtered on the front end by brand or by brand AND model.

    What hook and actions could I use so that the value entered on the Model field is added as a child category of the selected brand?

  • Hi @l.pirondini

    Please use the acf/save_post action to run any logic after ACF saves any values.
    You can read about this action on the documentation page.

    Thanks
    E

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

The topic ‘Registering child category when publishing a post’ is closed to new replies.