This is a little hard to tinker with, without data to try it on.
What strikes me as strange in your architecture that you describe it as type with three possible values, but what you have it three (I guess) different keys for it. It would make more sense to me if you had single key (say faculty_type
).
As it is my best guess would be try to reverse it and condition that faculty is not the remaining third type instead. Not clear if you have any entries that aren’t in any faculty though.
Related Posts:
- Sort Order for a Custom Query in a Post Type Archive Not Working
- Select All in Parent Category, Group by Child Category?
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- WP_Query post at custom position
- Combine tax_query and meta_query in WP_Query
- query order by date on custom type: wrong order
- Re-order posts in query after
- Query to get the author who having maximum number of post (custom post type)
- Calculating Bayesian average for custom post type
- How to query different post types in specific order?
- wpdb custom post_type problem
- Combining sorted and random CPT
- Previous/Next Link by Meta Value in CPT
- Wp_query: sort by PHP variable
- How to do WP_Query with two meta fields with orderby clause
- Including metaboxes from custom post types in global search — continued
- Order by summing multiple values
- Order Custom Post Type by Custom Field Value
- Change sort order when using ‘orderby’ => ‘type’
- Proper way to display latest 5 posts grouped by post type?
- Front end access to a SQL data repository – recommended way?
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- WP_Query of custom post type sorted by meta_key has unexpected results
- WP_Query not resetting after wp_reset_postdata
- A faster way to query custom post types with multiple conditions?
- Post ordering not working with custom field
- Displaying Portfolio Filter by Category Order (alphabetically)
- Display Parent-Child Posts in specific order by comparing IDs in array
- How can I sort the results of a REST API response by the title of a connected custom post type?
- WP_query has incorrect wp_posts.post_name = ‘asc’ when I have custom post type called ‘order’
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- SEARCH QUERIES – REVERSE OUTPUT
- Wp Query sort order from custom MetaBox
- WP Query with multiple post types ordered by custom meta date then published date
- Orderby modified only for specific post types
- This wp_query will not return any posts and only seems to work with post_status inherit?
- 404 on Pages for Custom Post Type & Query_Posts
- WP_query orderby not working after WP4.0 update [closed]
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- Query order by meta value force specific tag first
- Order Wp Query by earliest of 3 dates meta query
- Assign a tag to custom post type using a query
- How to set a custom post type to have viewable future posts
- Filtering a WP Query result
- Secondary loop pagination on custom post type single post gets redirected to first page
- Add special meta box to custom post type
- WP Query group/order by category name
- exclude custom post type by meta key in wp_query
- Query for custom posts with a specific tag slug
- Loop through categories and create tab for each
- Unable to get post content from custom post type loop
- WP-Admin edit.php & post.php slowdown after import of 10k users
- How to dynamically attach pictures to a carousel
- Is it possible to apply a meta_query to one specific post type in a query with multilple post types?
- WordPress Orderby Numeric Value Not Working
- Deleting Custom Post type data using mySQL command
- I did group my search results by post type, but how can i give each of them its own order?
- Ordering posts in Search & taxonomy by post_meta
- WordPress custom loop filter by meta_key and value with serialize data
- Show one item per category of a custom post type
- Mixing 2 custom post types with posts output in specific pattern
- Why is this query not working? (Standard posts + custom post type)
- How to order and group custom post type posts by year and month
- First custom field value (out of several) displayed twice after query
- Manage Columns : order by post_parent’s title
- Archive not sorting correctly
- Create an archive page for custom post type with custom taxonomy
- WP_query – Filter by tax_query and meta_query using multiple select
- Create a list of recent Custom Post Types posts
- Empty search input does not return all posts
- Undefined $post in wp_query
- Adding Multiple Post Types to Query [duplicate]
- WP Query results showing posts outside of category ID
- tax_query (if the terms are empty)
- How to count other posts not having specific taxonomy terms?
- Group by custom field value (start and end times)
- Running a custom query inside another cpt single and trying to grab a variable
- Get posts by category name
- WP_Meta_Query object with conditionals
- Problem while filtering by ‘category_name’
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- Order posts by taxonomy terms
- wp rest api orderby field in a custom table
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- WP_Query get always custom post_type for first
- meta query multiple values for the same key
- Custom post types – meta_query: search lesson which starts sooner
- Custom Post Type Query by user id
- Most efficient way of showing children posts?
- How can I use WP_Query argument ‘Like %..%’?
- WP_Query function for custom post type
- How to pass taxonomy terms to WP_Query along with $args?
- query and paginate multiple post types
- Custom Post Type meta oembed html output resulting in WSoD
- Custom Query With Multiple Meta Key Value
- shortcode for recent custom type post
- next_posts_link returns same content of 1st page
- How to sort custom post type by multiple custom fields?