Home Forums ACF PRO get Custom ACF Field values in JS


get Custom ACF Field values in JS

  • Hi,
    What would you suggest as of how to get Custom ACF Field values in JS?

    I do know you have a JS Api but that api does not allow to get fields values by POST ID, it will try to default to current post, which is not useful in a map like I have.

    So I would need to get custom field values by name (custom field name) AND POST ID

    Thank you.

  • There are a couple of ways you can do this.

    You can get the values in php and then set JS variables that are output into the page so that they can be used.

    You can use AJAX to get the values.

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

You must be logged in to reply to this topic.