I think you’re confusing WP_Query
with taxonomy arguments. WP_Query
doesn’t have a child_of
argument, use post_parent
. and sort_column
should be orderby
.
Related Posts:
- Display Child Pages of Custom Post Type Parent Page
- Pagination not working with custom loop
- Get the ID of the latest post
- How To Limit Hierarchical Pages Depth (For Custom Post Types) To Children Only
- Sort custom post type list table by display name of a user id stored as post meta value
- How to use a custom post type as front page?
- Random post, once per day
- Automatically create child pages when saving a (parent) page
- get attachments for all posts of particular post type
- Display a list of child posts on parent posts of a custom post type
- 404 on child page when parent page slug is identical to custom post type
- Query custom post type by custom field
- Add Custom Post Type to Current Query
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Create child page within custom post type
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- Child pages on hierarchical Custom Post Types 404s
- SQL to update custom post taxonomies
- Query multiple taxonomy in Custom Post Type
- Querying Posts by Taxonomy From Alternate Network Site
- Display posts of custom type in hierarchical order
- Custom Search | Wrong output & question
- Get the most popular terms for a custom post type
- Query by 2 values of a repeater ACF field
- show posts only on homepage but using custom post type and taxonomy for query posts via url
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- WP insert post PHP function dynamically generated Custom Fields
- Include both default and Custom Post Type in query modified inside pre_get_posts
- Query posts between two dates (custom meta keys) CMB2
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Include different loop templates in search query
- Adding posts of custom type into the main feed
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Inserting data into `post meta` table?
- Custom Select Query with Custom Post Types
- Automatically adding meta data to posts or multiple query help
- List the 5 most recent child pages
- Query in a Hierarchical Custom Post Type for Children vs Siblings
- Having trouble with custom date field for CPT query (WordPress)
- Exclude the parent custom post-type posts only
- Child page in custom post throws 404 page not found
- Custom Post Type order by modified date and custom meta field issue
- Sort posts based on multiple custom fields
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- WP_Query search posts by custom post type and custom taxonomy
- Remove custom post type slug not working for child pages
- Share parent path between Custom Post Types and Pages?
- Calculating Bayesian average for custom post type
- Page as a child of a Custom Post Type
- Conditional to modify query results
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Selecting New & Edit Page for Custom Post Types
- Show Two custom Post type and their posts on category page
- How to filter custom taxonomy categories on archive?
- Modifying date filter on admin page for custom post type to link to custom field
- Ignore sticky posts if post is not in meta query
- Can I make WordPress use a custom template for a child page
- Querying Term Posts in Loop
- How to debug a blank page?
- query posts and custom post type with meta key
- Use get_post_types to query only custom posts types
- WordPress Orderby Numeric Value Not Working
- Query string parameters from custom fields, inconsistent results
- Custom Post type is being ignored in query
- Query custom post type only if it contains another custom post type
- Add post_type to index.php
- Order By Post Type ThenBy Taxonomy
- Custom query to filter posts that have current post as a taxonomy [closed]
- Am unable to reset a query properly
- How to Display child post on his parent post with thumbnail and content in WordPress
- Custom post type redirected to homepage – how to debug
- How to modify archive query with pre_get_posts to append CPTs?
- Custom rewrite rule for hierarchical custom post type
- Get next and previous 3 posts in a term in single post page
- Advanced or not so advanced pre_get_posts query
- convert custom query to wp_query
- List children on child post
- Making certain categories of CPT not publicly queryable
- Search / Filter posts on Title/Content OR Tags
- child of post type (custom)
- Get parse_query filter to return slug instead of id
- Querying both pages and posts
- Meta query for custom post type ignored in main query
- Child post with numeric only slug keeps redirecting to parent
- Querying Two Custom Post Types with OR Not Working
- How do I move/order posts with a tag to the end?
- Next and Previous Posts of Same Parent
- How to target a specific custom post type post and its all children and grandchildren?
- creat filter with wp_query
- Specific query for custom post type
- Versioned Custom Post Type (Not the same as revisions)
- Custom post Type, child of a Page?
- Display post content with respect to its title?
- What code should I use to display children of a custom post?
- First custom field value (out of several) displayed twice after query
- Removed custom post type slug but not working for child pages
- Prioritize posts in query by meta keys?
- What’s the equivalent of Hide From Menus on MODX on WordPress?
- WP_Query orderby and tax_query