post_status=”publish” is default yo WP_Query so you not need specified.
As you can see real SQL query is ok.
And all returned results are with status publish.
looks like that only post_modified_gmt > ‘xxx’ is not respect.
Currenly use construction with
'fields' => 'ids',
so get only 14 post id’s and next
foreach($query3->posts as $id) {
$post = get_post($id);
// ...
but i don’t know if it is optimal way
Related Posts:
- WP_Query with “post_title LIKE ‘something%'”?
- How to extend WP_Query to include custom table in query?
- Best way to detect if you are in a SINGLE POST page
- compare meta_query in get_posts arguments
- How to do a wp_query using “BETWEEN” with two meta_values?
- Better way to get tag stats?
- Query two taxonomies via URL or link?
- How do I order pages and categories by ID or name in the same query?
- wp_query order by title
- How to do a query only on a specific admin page?
- WP Cron and wp_insert_post
- Sort posts by custom taxonomy name
- How to adjust found_posts so that it accounts for offset and pagination
- SQL query equivalent to WP User Query
- Function to check if author has posted within the last x days
- Wp_query order by multiple custom fields?
- Would this post meta be better added to the post table rather than post_meta table
- Show default content if custom WP_Query has no posts
- WP Query for Posts (Products) in Specific Category that has 2 Specific Tags (*AND* both tags not *OR*)
- meta_query on a date range using an array of values
- Pagination for custom query on single.php
- Get product list of given category
- Remove ellipsis from the excerpt retrieved using get_the_excerpt()
- Query Ignoring ‘exclude’ Parameter?
- WordPress query vars are not added
- How to prevent writing duplicate loops?
- merge two query arguments into one WP_Query call
- Adding a parameter to the default query
- Using WP_Query in “parse_query” or “pre_get_post” in Posts2Posts
- Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms
- Alternative to query->set that appends conditions instead of overriding
- Group WP_Query by meta_key date
- Set if condition with wp_nav_menu
- While creating Block Themes in WordPress, how can I query custom posts for an Archive view?
- How To Fix WP Query Returns Results But Shouldn’t?
- why update and delete query not worked in custom table?
- get_users is missing or skipping over users in loop
- WP_Query sorted by custom taxonomy
- Weird orderby => post__in issue
- how to handle multiple ajax wordpress queries?
- problem by deleting new plugin installed inside the WordPress after any heroku app sleeping [closed]
- How to extract specific post
- Adding multiple meta_key fields as orderby options to a WP Query via a function
- 1/3 of posts different class
- querying data via $wpdb and get_row
- Combining categories (Query posts with multiple taxonomy terms)
- Filtering out child category posts from parent category archive not working
- Custom Query include private posts in pagination count calculations?
- wp_update_post not working
- WP_Query with offset and ‘orderby’ => ‘rand’, offset not working
- WP_Query Limit Data_Query last 90 days
- Sort WordPress Posts Meta value by Week not Day
- WP_Query arguments order
- Best choice for multiple loop in page?
- wp_query get data from advanced custom field in wordpress
- new WP_Query messes up pagination
- How to create custom query by keyword in post title?
- Get Child Category only
- Order is breaking wp_query
- How to display all posts not in a post_format
- How to filter query loop block with a search string from the query parameters
- WP_Query – How to get all posts of specific days of week by custom field date?
- Use title of post as argument for query
- How can I comment comma-separated array values?
- WP_Query returns no posts for category
- Different Loop for tag pages?
- Orderby two meta fields not working
- Post__not_in only removing first 2 pages
- Query posts by searching for a string in a meta field
- Added Date Filter To Popular Posts Query
- WP_Query: attachment image in “full” size?
- Adding pagination to sub-wp_query within a singular post page
- How can I build a query that returns all attachments of a page and it’s children pages?
- Query ACF relationship field – Comparator IN – Value array
- Use get_cat_ID to retreive multiple category IDs
- get_post_format is not returning standard
- Duplice post with standard WP loop – fixed by using query_posts() instead
- WP_Query paginate with one term per page?
- Exclude parent categories from recent posts list
- custom excerpt is not being shown
- Filtering WP_Query based on wp_postmeta keys values
- using custom meta user data to run queries in WordPress
- Look for string in posts and postmeta
- Multiple meta_query not working
- meta_query only check if both value are set
- post_type not working when tag__in is present?
- posts_per_page increment additional post
- WordPress wp_query add custom query as field
- 3 wp_query on one page with pagination for last query
- Optimize WP_Query
- Add a custom variable to query page object
- Read more redirection problem
- Help in query for list links
- Multiple loops on index page with sticky post and pagination
- Randomly display posts on a site hosted by WPEngine? [closed]
- tax_query not working properly with get_posts
- how to add limit records in wordpress query
- Get access to all terms associated to each post that the wp_query loop displays
- WP_Query by meta key not returning any posts
- WordPress – Optimize the Meta Query for 3 meta keys at a time