Home Forums General Issues update_field() from front end with javascript?


update_field() from front end with javascript?

  • I’d like visitors to do an ajax request from the frontend of the site.
    ex: when visitor clicks a radio button on frontend, the checked radio value updates a corresponding radio field value from an option page.
    Then all the fields attached to this option-page radio would then update.

    The idea is I have a few color skins for a theme attached to a radio list in option page. Each radio is a different skin.
    An other radio list on the frontend would fetch this on radio:checked

  • Hi @antk3

    Yes, you can use the update_field function via an AJAX call.

    Perhaps you could start by researching how to perform an AJAX call in WP.


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

The topic ‘update_field() from front end with javascript?’ is closed to new replies.