WP Query: If field X is empty, show posts based on field Y
Related Posts:
- How to use a custom post type as front page?
- Querying Posts by Taxonomy From Alternate Network Site
- Query by 2 values of a repeater ACF field
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Include both default and Custom Post Type in query modified inside pre_get_posts
- Having trouble with custom date field for CPT query (WordPress)
- WP_Query search posts by custom post type and custom taxonomy
- Calculating Bayesian average for custom post type
- Conditional to modify query results
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Querying Term Posts in Loop
- Use get_post_types to query only custom posts types
- WordPress Orderby Numeric Value Not Working
- convert custom query to wp_query
- Search / Filter posts on Title/Content OR Tags
- creat filter with wp_query
- First custom field value (out of several) displayed twice after query
- Prioritize posts in query by meta keys?
- WP_Query orderby and tax_query
- Different Ways to Query Custom Post Types?
- Showing specific post in order of array wp_query
- WP_Query() with custom post type and taxonomy — get all terms?
- Returning a custom content types with meta values
- Create query for both custom post type and category
- Query custom posts from custom taxonomy
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Change search query in wordpress custom post type
- WP Query from two Custom Post type fields as statement
- How select query is generated in a Custom Post Type?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- post type => ‘any’ not applied my custom queries
- Linking posts together with Advanced Custom Fields “both ways”
- Get posts of an specific term of a custom taxonomy
- Conditional posts in WP_query for search
- Query Pulling the same post twice
- Is it possible to add query parameters on the archive page?
- Query child posts on parents single.php?
- Query Posts From Multiple Post Types
- WordPress can only query up to 766
- Filter Custom post type by another Custom post type
- Create a list of months based posts
- Load posts via AJAX without draft status
- Mixing regular and custom post types (with meta_query) on home page
- How to make a WP_Query search with custom post types?
- $wp_query->queried_object->ID throws warning: Undefined property
- Display Custom Post Type Fields
- Use WP_Query object inside a function
- WP_Query search custom posts meta date fields
- Get posts with tag all post types
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- WordPress query by multiple Custom fields and order by date
- Help with hierarchical custom taxonomies and permalinks…almost there
- Adding posts of custom type into the main feed
- Query custom post types and a specific page?
- Help with CPT template pagination
- Custom query shows custom post types in trash
- How to filter custom taxonomy categories on archive?
- Fetch taxonomies by custom post type id array
- How to connect two custom post types with nested loops
- Custom Post type and Custom Field WP_Query
- Display multiple custom post types and sort them chronological by one of their fields
- Using DISTINCT in wp_query
- Related posts in all categories of current post (custom post types)
- Order By Post Type ThenBy Taxonomy
- How to show CPTs in term archive
- Custom query to filter posts that have current post as a taxonomy [closed]
- Query/list all terms and their custom post count
- How to modify archive query with pre_get_posts to append CPTs?
- Genesis filterable portfolio isotope [closed]
- Pagination on with query_posts in custom post type template
- Get parse_query filter to return slug instead of id
- Custom post ui plugin & WP_Query – Polylang
- Polylang non-default language ignores tags in WP_Query
- wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query
- Why is my WP_Query outputting my entries twice?
- How to display Related Posts based on number of taxonomy terms matched
- Query & the_content() is showing in the header
- Variable not working in WP_Query
- Wp Query with multiple custom tag(taxonomy) by get the terms
- new WP_query > displays posts only once instead of running through full array
- How to get Custom Post Type with Categories wise in WordPress using wp_query
- Pagination on search results page
- WP_Query of a custom post type isn’t working
- Page that lists publications by classifying them by taxonomy
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- Foreach result into WP_query
- Query posts based on user preferences
- How can I use WP_Query argument ‘Like %..%’?
- WordPress custom post type
- Custom post type single display is ommited
- Custom Post Query Combined with Conditional Tags
- Custom loop won’t work, can’t find problem
- Query by post type or category
- Get all custom_post_type posts + blog posts from one category in a single query
- Customising wordpress search and using $_GET[“s”]
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Allow admin to determine the order of queries?
- WP Query – Can’t get posts with specific taxonomy