The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

1

Using Ricardo's with some modification: static $paged; $post_ids = []; do { $paged++; $defaults = [ 'fields' => 'ids', // Only return the ID field to make this query faster. 'post_type' => 'post', 'posts_per_page' => 100, 'no_found_rows' => false, // We need pagination & the count for all posts found. ...


3

Maybe with SQL, but I wouldnt suggest it, so you have two options: Query a full list, and then check your condition on each post retrieved. or Save the product of those three fields in another meta field, which can then be queried. EDIT: For the second method, it really depends on the context. if you are handling the saving via wp_insert_post, then you ...


0

OK so fixed this by updating the following line from $output .= 'jQuery(".datepicker").datepicker();'; to $output .= 'jQuery(".datepicker").datepicker({ dateFormat: "yy-mm-dd" });'; Thank you for all the help


Top 50 recent answers are included