Copy data from 2 different ACF custom post types with relation
Copy data from 2 different ACF custom post types with relation
Copy data from 2 different ACF custom post types with relation
but I’m not using a WP_Query since I’m just changing the order of a category.php page (so, correct me if I’m wrong, but WP_Query shouldn’t be necessary in that case, correct?). Yes, you are. The whole point of the pre_get_posts action is to give you access to the query object before it goes to the … Read more
Expire Date Condition not Working ACF WordPress
This question is better suited at https://stackoverflow.com as Max suggested, but for a quick and dirty solution: Solution (rough) Adjust the code to suit your specifications but this should give you the basic structure you need. <?php // assume $meta_data holds your array (e.g. get_post_meta($post_id, ‘some_key’, true); // for some sample data I made an … Read more
This isn’t possible using WP_Query, you can’t query the insides of structured data stored in a single post meta value. At best you can use regular expressions, or do math/boolean comparisons, you can even do LIKE comparisons, but these are all string operations. If you need to query structured data such as objects or arrays, … Read more
SOLVED. I missed ID field in field array. $args = array( ‘role’ => ‘author’, ‘order’ => ‘DESC’, ‘orderby’ => ‘post_count’, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( ‘key’ => ‘medical_diagnosis’, ‘compare’ => ‘EXISTS’, ), array( ‘key’ =’gender’, ‘compare’ => ‘EXISTS’, ), ), ‘who’ => ‘authors’, ‘count_total’ => true, ‘fields’ => array( ‘ID’, ‘user_email’, ‘display_name’), ); … Read more
Create a pdf from the entries in DB
Custom Form / Search with Custom Post Type Data
multiple meta_query and orderby question
Custom Post Type meta data getting deleted on bulk editing taxonomies