Order WP_Query by meta_key priority when ‘OR’ relation used for multiple meta values
Order WP_Query by meta_key priority when ‘OR’ relation used for multiple meta values
Order WP_Query by meta_key priority when ‘OR’ relation used for multiple meta values
This bit of code will update the comment_post_ID with the value submitted using your custom form. function wpse405448_update_comment( $comment_ID, $comment_approved, $commentdata ) { if ( isset($_POST[‘acf’][‘field_6278d64aecf19’]) && !empty($_POST[‘acf’][‘field_6278d64aecf19’]) ) { $comment_post_id = intval($_POST[‘acf’][‘field_6278d64aecf19’]); $com_arr = array( ‘comment_ID’ => $comment_ID, ‘comment_post_ID’ => $comment_post_id, ); wp_update_comment($com_arr); } } add_action( ‘comment_post’, ‘wpse405448_update_comment’, 10, 3 ); Make sure both … Read more
Get ACF taxonomy term and sub-term lists ACF blocks
Having a repeating custom field in admin custom post type, what I’d go better with, for DB’s sake? ACF repeater or query a different post type?
Yes, a quick search of developer.wordpress.org reveals comment_feed_where. Note that this won’t work with get_posts unless suppress filters is turned off, and that what you’re trying to do is going to be very slow with some unreliability. There is also comment_clauses: https://developer.wordpress.org/reference/hooks/comments_clauses/
How To Save Data From Remote APIs To ACF?
Fetch data from two custom post types and create multidimensional array for output to html table
Add class to all img if they have a certain ACF field
You should check the pre_get_posts() filter hook.
You can filter ACF repeater field sub fields on the front end using some jQuery. See basic example below. See live working demo here: https://jsfiddle.net/joshmoto/ns73z05b/ See comments in jQuery so you know what is happening. // faq filter input on keyup event $(‘#faq’).on(‘keyup’, ‘INPUT[type=”search”]’, function(event) { // get our elements let $faq = $(event.delegateTarget); // … Read more