How to auto update an acf field based on the condition?

I have two custom post types with acf fields. Custom Post_A, which has 2 fields – title / submitted Custom Post_B, which has 2 fields – title / percent Both Post_A and B have the same title (which is …

output the_field of related posts with ACF Relationship

and first off all, thanks for help. I have to following code to display related posts from one custom post type to another with ACF Relationships. what i want to know, is it possible and how can i …

How to implement photoswipe into wordpress custom theme?

I’m trying to implement photoswipe into my site but I’m not sure how to go about it for a wordpress site.. I’m using acf repeater to display all images in a grid. I’d like to display the photoswipe …

Add custom field inside a do_shortcode

I’m trying to add a contact form into a page template with contact form 7. However, I want the destination email to come in from a custom field I have created. The code that pulls the custom field …

Shortcode from ACF Default Value only working after post is saved

I have this shortcode which is saved in the Default Value text field of an ACF field. The field type is Wysiwig editor. I get the Default Value text by using acf_get_field(‘location_info’)[‘…

How to generate a pdf on post saving or updating

I’m trying to create a PDF from post content, including some ACF fields. Currently I’ve got it working on a POST form and dynamically creating a PDF each time, but I’d like to make it generate the PDF …

WordPress custom field for multiple pages

I am using ACF pro for creating custom field for my wordpress website. I have a custom field in home page which I want to use in another three pages. Code I have given below.

Get custom fields values in filter on wp_insert_post_data

Hi all, thanks for reading. Environment : Wordpress + Advanced Custom Fields plugin Problem : I have searched for hours now and I can’t seem to find the correct syntax to do the following: When …