$base_array = array(
'posts_per_page' => -1,
'fields' => 'ids',
'post_type' => 'cpt',
'post_status' => array('publish'),
'date_query' => array(
'before' => 'next Saturday',
'after' => 'last Monday'
),
'tax_query' => array(
'taxonomy' => 'pas_here_taxonomy'
'field' => 'slug',
'terms' => array( 'hardware', 'software'),
'operator' => 'IN'
)
);
$base = get_posts($base_array);
echo count($base);
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Custom Post Type Category List & Post Count
- Taxonomy list. Order by a specific custom post type count
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Show metabox in custom-post-template depending on taxonomy term?
- Displaying Metabox value (custom post type taxonomy)
- get_queried_object error How to show post count by month in the taxonomy page
- How can I display my custom metaboxes on a custom post template?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Query/list all terms and their custom post count
- How to duplicate entire custom post type
- Post count by month of taxonmy term
- Metabox not show in categories custom post type cmb2
- Display different information of a custom post type
- Filter posts by tax (dropdown) and meta value
- how to show records that don’t have custom meta value
- I am trying to get cutom post cout by month of current taxonmy term
- how to count the current posts terms
- How to count other posts not having specific taxonomy terms?
- best way to use custom taxonomy, post type and meta in a job system
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Should I use a custom taxonomy or custom post type for grouping a list of panels associated with a group of tests?
- display post count in archive page that have relation with another taxonomy term
- get_queried_object not work in taxonomy page
- How to show custom post count in archive page
- Saving Child Terms on front end not setting parent
- Order posts by meta value hiding posts instead of re-ordering
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- WordPress custom post type
- Values inside a custom field to determine which category posts to display
- Timetable of Custom Meta Data using Custom Post Type and Custom Taxonomy
- Advanced search form with filters for custom taxonomies and custom fields
- Automatically add custom taxonomy when meta value gets to a set number or beyond
- Complex Custom Loop with Includes
- Hide load more button if no more post in selected category
- How to rewrite url for any specific taxonomy?
- Specific query for custom post type
- Custom post URL 404 error
- limit value taxonomy based on previous taxonomy value wordpress
- Dynamic dropdown select values depending on other custom field value
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Limit number of custom posts per taxonomy
- Custom taxonomies relationship
- I want to change the word “Tags” in WordPress to something else, but how?
- Permalinks /country/city/cpt/postname/
- Number of Custom Post Types published are not being shown in the custom page
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Update postmeta Parent when post_status child change
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- What is the best practice for displaying my plugin content in themes?
- Categorize custom post type
- custom post type category count shortcode
- WordPress request fiter order by related post’s post_title
- How do I display the taxonomy for a custom post type in an array
- Pretty URL for custom search for custom post type
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- How to list custom taxonomies in the back end
- Several CPT’s with same Taxonomy name but with different Terms for each
- Remove slug in URL custom post type
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How to conditionally redirect to the post from a taxonomy page?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Sort and filter custom post type posts by custom taxonomy
- How do I display the grand child items of a taxonomy term?
- How to edit this code to get the categories in achieve page?
- Taxonomies relations
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Get general taxonomy name for a Custom Post Type
- Display Custom Taxonomy Alphabetically
- Import data from CSV with custom taxomony empty
- WordPress uses url different from defined in rewrite arg of custom post type
- Custom Post Type Loop with Query Var
- Full Custom Post Type List Organised by two Taxonomies
- Is it possible to use have_posts function to list custom post type posts inside a category?
- WordPress Doesn’t Generate Taxonomy Archive
- URL rewriting for CTP assigned entity
- How to have this permalink structure: post_type/postname/custom_inner_page
- Suggested Post and Taxonomy structure
- How do I require the specification of term in a custom post type and custom taxonomy?
- Custom Post, set object Taxonomy terms in plugin
- Query Custom Post Type Taxonomy term with multiple parameters
- Display post content with respect to its title?
- Hierarchy and access control for Custom Post Types (CPT)
- Update database from Quick Edit according to Checkbox state of Custom Post Type
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Auto Complete Search
- Custom Post Type Pagination Paginates Only in URL Structure
- Set post terms for multiple posts
- Load Custom_post_type categories post with ajax
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Storing a many to many post type relationship in post meta and keeping SQL ability for Joins
- Custom taxonomy returns 404
- Get terms that contain posts that in turn belong to other terms?
- WP-API select custom taxonomy when creating a post
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?