Get ACF value in external jQuery document
I’m trying to get the value of an Advanced Custom Fields select list in an external jQuery document, in order to apply some conditions to it.
I’m trying to get the value of an Advanced Custom Fields select list in an external jQuery document, in order to apply some conditions to it.
I’m trying to figure out how to set up a conditional statement to check if the parent, child or grandchild is being displayed. This is what I’ve got so far:
I created a gallery with the “gallery add-on” of “advanced custom field” plugin.
I want to order some posts by the number of downloads, DESC, and it seems the articles are random displayed:
I’m working with WordPress and ACF Flexible content, I create a jquery function that will show and hide certain elements for each Flexible content block but it’s showing/hides elements on the full page instead of the section.
Exactly what it says in the title. How do I set a semi transparent coloured layer over an ACF background image?
I’m struggling to use an ACF repeater field within my Next.js project. I have a block which has a repeater field with sub fields, I can get the data however I’m not sure how to put it within a loop.
I want to expose all the ACF fields that belong to a page or custom post type to the WordPress REST API in order to do some API calls through javascript.
I have created an advanced custom field that allows editors to add an image and title to be displayed in a Bootstrap 3 carousel. I am having trouble with the conditional logic for the image field. The script we are using is designed to use the image added in the advanced custom field and if there is no image in the advanced custom field it uses the post’s featured image. The same is true for the title. If a title is entered in the advanced custom field it uses that. If no title is added to the advanced custom field it uses the post title.
I am using the Advanced Custom Fields and ACF to REST API plugins. In my functions file I have specified custom query parameters to filter my custom post type by ACF fields in my REST request: