Not sure if is this, but you can add taxonomies in query:
new WP_Query(array('posts_per_page' => $num, 'post_status' => 'publish','taxonomy' => $taxonomy));
You can filter by term with $taxonomy => $term
:
$taxonomy = 'seasons';
$term = 'spring'
/* $terms = array('summer','winter') an array */
new WP_Query(array('posts_per_page' => $num, 'post_status' => 'publish',$taxonomy => $term));
More on WP_Query
Note: taxonomies and terms are not the same thing 🙂
Related Posts:
- How to call custom taxonomy categories with shortcodes
- how to create a proper query for getting a list of users with taxonomy related meta key
- How to check if do_shortcode will be execute directly in a template php file
- Google Map Shortcode for Custom Taxonomy/Post Types
- Taxonomy Order by Name
- Get custom taxonomy for visual composer shortcode but not working?
- How to create a custom taxonomy using a shortcode?
- Shortcode to show the terms from the current post (custom post type & custom taxonomy)
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- WordPress shortcode Issue!
- Get taxonomy image for Toolset custom taxonomy through Toolset Views Shortcode
- Get term name from term ID?
- Contact Form 7 – Populate Select List With Taxonomy [closed]
- Can custom taxonomies be displayed inside of a custom meta box?
- Front End Post Save Child terms
- Display child taxonomy until the last child
- URL rewrite rules for multiple taxonomies query
- Page queried instead of a custom taxonomy
- Pros and cons of using [taxonomy name] in place of [category name]?
- How to display and use all existing tags at my write-post-at-frontend-panel?
- How to use create_term, edit_term, delete_term actions?
- drop-down list another query
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- custom taxonomy archive permalink shows 404 error
- is there any limit of length on creating custom taxonomies?
- custom post type category page
- WordPress renames slug of tags used in multiple taxonomies?
- How to get a list of taxonomy terms which are being used only within certain post types?
- Taxonomies: display hierarchical parent list
- WPML Translating a term/taxonomy programmatically
- Display an image instead of tag name?
- Custom fields ‘for’ custom taxonomy?? Can someone explain why?
- Display Custom Post Type Taxonomy Child Categories and their Posts
- List taxonomies according to whether this post is in another taxonomy in taxonomy archive
- Create and set templates for custom taxonomies
- Taxonomy template shows only 10 posts
- Pagination on custom taxonomy
- Register a pre defined tree of taxonomies
- Disabling wp_tag_cloud() outputting inline CSS
- How to show all possible parents and children of a hierarchical taxonomy term?
- Custom Taxonomy
- How to use taxonomy term as a value of get_template_part?
- Hierarchical Taxonomy Terms Select Menu Output with selected=”selected” Set
- Sorting Custom Posts on Archive page with pagination
- querying posts by custom taxonomy terms right from a querystring based URL
- How to change url for taxonomy pages?
- How to Modify Default Text in a Custom Taxonomy Admin Panel?
- Take a custom taxonomy value and save as a standard Product Tag
- Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in WordPress
- Why isn’t the ‘no results’ being shown when a query returns no results?
- How to get_the_term_list() from multiple taxonomies?
- wp_dropdown_categories – how to save in widget?
- Loop to display ONLY custom taxonomy parent information [closed]
- echo a specific custom taxonomy term on a different custom taxonomy archive
- Loop through custom taxanomy in post and display custom fields from posts
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- list custom taxonomy with count
- Custom Taxonomy List with Children
- Dynamically generate category id and store in variable
- saving custom taxonomy as post title
- Taxonomy list links to first post in that term
- Page for custom taxonomy
- Extra Meta Data for WordPress Multisite Taxonomy
- Problem with sorting in custom child taxonomy archive page
- Check if any available product has specific attribute
- Tax-query on taxonomy doesn´t work
- custom taxonomies not working
- How to Create taxonomy using ‘null’ for $object_type?
- how can i add more than one custom taxonomy?
- Query Multiple Taxonomies and Multiple Terms with Different Operators
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Pre_get_post custom taxonomy combined with custom fields?
- Adding a checkbox field to a (custom) taxonomy
- Country-specific content
- Ignore punctuation marks in taxonomy order by name
- Echo custom taxonomy values
- Print Custom Taxonomy Term Name
- Resize $term attachment using url
- Product dimensions filter by taxonomy
- How can I pull the slug of a custom taxonomy and output it in a class?
- Custom taxonomy escaping html attr
- Showing list of custom posts of a custom taxonomy
- Multisite custom taxonomy archive issues
- How to show/hide a meta box using categories, with a different post type
- Taxonomies, Adanced Custom Fields and Repeatable Fields
- Debugging Missing Elements in Taxonomy
- Producing a list of media library items categorized under a certain taxonomy item
- Custom taxonomy displayed in search results
- Use custom field as tag slug
- How To Display Selected Terms For Custom Taxonomy?
- Custom taxonomy subcategories template page
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- displaying links if term is used
- Creating a page for custom taxonomy archive
- WordPress Taxonomy Menu
- Insert code on specific taxonomy archives
- get_term_children specific no id
- custom texonomy category child category list with parent head
- Best approach of implementing multi-select/checkboxes for taxonomies?