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
- Query multiple post types – Order by type and post title title
- How to connect two custom post types with nested loops
- Filter by custom taxonomy slug on a custom post type
- Custom Post type and Custom Field WP_Query
- Pagination on category page with custom post types
- Display multiple custom post types and sort them chronological by one of their fields
- Adding custom tables to WordPress
- Using DISTINCT in wp_query
- How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?
- Using global $post; to get featured image for custom post via WP_Query
- Query custom post type in the loop
- How to add pagination to wp_query [duplicate]
- Related posts in all categories of current post (custom post types)
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Loop through Custom Post Type, and then show children within each iteration
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Sorting multiple custom post types without a meta key/value pair by sort order
- Including Custom Meta with posts_where query
- Very Slow Page – How to Optimize # of Queries?
- orderby in custom WP Query does not work
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Can I create a loop with multiple post types and specify different $args for each post type?
- How to show CPTs in term archive
- Query custom post type by category slug
- How to add post_type=value when editing that post type in the WordPress admin?
- Display CPT posts based on specific taxonomy
- Can’t query tag and post_type at the same time
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Setting proper query for multiple custom admin filters
- shortcode to show custom post types by category
- Unable to retrieve any posts of CPT in wp-admin
- WP_Query: include custom post type only with specific meta value
- Pagination on a custom post type loop
- 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
- showing custom post types of a certain category only
- Insert post metadata for all posts in CPT at once if metadata no existent
- WP_Query orderby modified to include custom meta changes
- WordPress custom loop filter by meta_key and value with serialize data
- Returning a list of custom post types excluding those without a specific meta_value
- query private custom post type
- Display custom post type from dynamic custom field
- Query/list all terms and their custom post count
- Linking to the most recent post in a Custom Post Type
- SQL: What is wrong with the following query (generated by WordPress WP_Query, ordering prices)
- Slow WP_Query for custom post type
- How to make sure content doesn’t display if selection is empty
- Filtering WP_Query Dynamically on the Front-End
- Show one item per category of a custom post type
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Storing posts from query and accessing later via AJAX call
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Genesis filterable portfolio isotope [closed]
- Rewrite and custom post type: order by custom field not working
- Query custom post type with tags