This is what works in my query:
<?php
$argsfeature = array(
'post_status' => 'publish',
'post_type' => 'page',
'order' => 'DESC',
'posts_per_page' => '1',
'meta_key' => 'featuring',
'meta_value' => '1'
);
?>
and this query works:
<?php
$argsarticles = array(
'post_status' => 'publish',
'post_type' => 'page',
'order' => 'DESC',
'posts_per_page' => '5',
'post_parent__in' => array(10,11)
);
?>
what isn’t working is “rewriting” the 2nd query listed above where I can get the child pages of 10 and 11, BUT NOT the pages that have already been pulled from the “featuring 1” query – the first query listed above.
Thank you so much for the help.
Related Posts:
- How can I use order_by to order by two meta_keys without excluding posts that don’t have those keys initialized?
- Function in array as arguments for WP_Query
- WP_Query to show post from a category OR custom field
- Sorting posts by custom date fields (non standard date format)
- Getting attachments by meta value
- Sorting Posts by custom field
- Order posts by date and then by custom field
- Query two post types and order by two different date fields
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- meta_key and meta_value not working together
- How can i make WP_Query return post image and categories?
- Custom Field sort not working (WP 3.8.1)
- How add a custom posttype name using ACF field to a query post array
- getting posts and number by specific meta value in multiple meta
- Ordering Posts Type A by Custom Fields of related Post Type B
- Search Posts with Custom Fields as query
- Get posts for which a custom field is not present, with get_posts
- Output an array of terms for a ‘tax_query’ => array()
- exclude posts with a specific custom field and value
- Add quicklink to in the Admin posts page where I can query by a meta_key
- How to make Meta Query case sensitive?
- How to Filter Posts by Custom Fields?
- Fetch Record based on meta key dates
- Meta_query with multiple keys and multiple values
- meta_query BETWEEN, but the range is stored in the custom field
- Get a list of posts with associated meta_value
- WordPress Comments sort by custom meta key
- Understanding the orderby in WP_Query?
- How to list custom fields as headers and list all pages sharing that custom field under it?
- Order by empty custom field
- Large AND OR query timing out
- Categorising search results based on Custom Fields
- WP Group posts by year(desc) > month(desc) > date(asc)
- Search posts missing a particular custom field
- wp_query get data from advanced custom field in wordpress
- How to compare a date in custom field with today’s date in custom WP_Query?
- WP_Query Meta_key is text value and need to sort as numeric not working
- filter wp_query result with custom field values
- Conditional operator OR not working with custom fields
- WP ForLoop to compare meta information of posts to determine what post to display
- WP_QUERY with group by with custom fields
- Intiger meta value with ‘>=’ returns posts with lower value
- Display posts with specific value first in query
- get_posts custom field
- wp_query posts with custom fields number smaller than
- Posts query according to meta box date
- create metabox to activate slider
- Query posts using less than
- Retrieve select tag custom values from array and display them in current page with wp_query?
- How to use a dropdown to filter posts by custom field
- Query only displays one page_id
- Querying a large number of posts including their custom fields data
- Display post meta conditionally based on it’s value
- Query using string from custom field as array value
- How to show list of posts with custom field value (a date) that are coming soon
- add_query_arg to compare and display events from a certain date
- meta_query weird behaviour, static int will work, but not user data
- Query multiple post types, but different order for each
- Order by the first array within a meta_query
- Woocommerce Shortcode which displays a table with product data
- Query ACF relationship field – Comparator IN – Value array
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields
- How do i create a custom post query when the meta value is an array?
- display ACF repater field in archive page
- Query posts by post type, author and post meta
- How to use the Term Object from a custom select field in a query
- WP Query – grouping posts by same meta key, adding together values from another key
- Retrieve all custom field values of a specific custom field metakey as an array, inside WP_Query
- Trouble with serialized metadata
- Categories In English version showing not canonical URL, instead shows query search result
- Comparing Meta Field date in WPQuery using Meta_Query?
- Query against multiple locations within single custom post type post
- Query post by Category and custom file (ACF)
- WP_Query, ACF field and array
- Problem with my loops
- Order 2 meta_queries differently in WP_Query?
- Order by Date Custom Field
- Sort posts on custom field AND after that sort on date?
- using custom meta user data to run queries in WordPress
- Order posts by title and custom field value?
- List users by Year of Birth using a foreach loop to dynamically populate years and data
- Meta key in wp_query bug?
- Wrap group of wp query posts to parent div by date/year
- Using custom field as ‘orderby’ value causing post grouping by publish date
- Sorting posts by meta values: 2 different orders
- Order Custom Field by Price
- WP_Query to show post from a category OR custom field – Not 100% answered
- Sorting Posts with meta value not working
- Order by three custom fields (Y-m-d), then separate into yearly sections
- Custom search (wp query by custom fields)
- How do I display posts with specific value in a custom field into my loop?
- Custom Search Query – include only custom fields and title
- query_posts with sorting on a custom datestamp
- Display all custom meta field values from the database using ACF Repeater
- Taxonomy related query not working
- Get posts by meta value except one post [closed]
- WP_Query – order with usort by custom meta
- WP_Query sort by ACF date field (newest first) with blank dates first
- Sort wp_query of two post types using meta datefield for one and date for the other – possible?