Category : advanced-custom-fields

I would like to add the value of an ACF custom field into a plugin in order to narrow the query with it. Here the function I’ve create in order to retrieve the value : function vayvo_elements_post_difficulty(){ $post_meta = the_field( array( ‘meta_key’=> ‘difficulty’, ‘hide_empty’ => false, )); if ( ! empty( $post_meta ) && ! ..

Read more

I have searched but could not find a solution I understand to this problem. I originally used only one post type that had Advanced Custom Fields for the content and put the following code in my single-post.php page in child theme to display on the frontend: <!– START –> <div id="primary"> <div id="content" role="main"> <h1><?php ..

Read more

I have searched but could not find a solution I understand to this problem. I originally used only one post type that had Advanced Custom Fields for the content and put the following code in my single-post.php page in child theme to display on the frontend: <!– START –> <div id="primary"> <div id="content" role="main"> <h1><?php ..

Read more

ACFfield called ‘submitdate’ (format => Date Time picker : Y-m-d H:i:s) has data ‘2021-06-11 17:23:36’. I need to keep this first value, but it keeps changing to the current date and time. I tried the following code but it still changes. Would you please let me know how to stop it? I tried: jQuery( ‘.acf-field-date-time-picker ..

Read more