$args = array(
'post_type' => 'locali',
'meta_query' => array(
array(
'key' => 'apecard',
'value' => 'on',
)
),
'tax_query' => array(
array(
'taxonomy' => 'yourtaxonomy',
'field' => 'id',
'terms' => array('143')
)
)
);
$postslist = get_posts( $args );
Related Posts:
- wp_query to find posts by year and month
- Adding a Section for Visitors
- Custom taxonomy template for custom fields loop [closed]
- Order by custom field attribute
- Advanced search form with filters for custom taxonomies and custom fields
- How to Add Custom Fields to a Custom Post Type?
- Display all posts in a custom post type, grouped by a custom taxonomy
- What should I use – Taxonomies, custom fields, Post Type?
- clients list using wordpress
- Custom Taxonomy Template Post List with Sort Order
- Creating Photo Gallery System with Custom Post Type
- How to do a custom bookmarks post type?
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- How to select one major category (or custom taxonomy) for a custom post type?
- Order custom posts by taxonomy?
- How to solve suspected memory issue in custom WordPress loop?
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Automatically assign a custom post to a custom taxonomy based on custom field value
- Conditional two level dropdown filter for custom post type
- Custom Taxonomy order by Custom Field
- Show all custom post type posts sorted by custom taxonomy then by another custom taxonomy
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy posts on Archive page
- Randomly placed sticky custom posts complemented by blog posts
- front end radio custom taxonomy with custom post type
- How to display the rest of categories on Portfolio filterable
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- 404 error PageNavi custom type taxonomy | wordpress
- Is there any performance consideration when using Custom Post Types?
- Get_post_meta() won’t return value
- Custom post type / custom fields
- Query for posts in 2 taxonomies
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- How loop through posts based on custom fields
- How to add custom fields to admin UI and REST API response?
- ‘category__and’ for custom taxonomy?
- Get Custom Field Values by Another Custom Field in WordPress
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Display custom post on home page based on a metabox selection
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- Custom Posts Hierarchy? (State/City/Restaurant)
- Automatically populate a hierarchical taxonomy from a custom field
- Create a random unique 6 digit number as custom field for custom post type
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Custom Post Type Loop within Shortcode
- How to insert content from another Custom Post type into Post?
- get_template_part for each level of taxonomy term
- Filter by custom taxonomy slug on a custom post type
- Normal pages as children of my Custom Post Type
- Only show posts from a certain category?
- Display CPT posts based on specific taxonomy
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- WP_Query orderby modified to include custom meta changes
- Am unable to reset a query properly
- How to bulk copy custom fields between custom posts?
- get_attached_media() on author page not working
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Meta Key Value in current-user-only loop
- Retrieve value of a category’s custom field
- Calculate all custom field values in the post loop
- Get next and previous 3 posts in a term in single post page
- wp_query check if integer exists in custom field’s array
- Loop custom taxonomy to get lists of cutom post types?
- Custom loop with multiple taxonomy queries
- search also in taxonomy, tags and custom fields
- Custom post type multiple loop by taxonomy term
- List custom taxonomy specific to one custom post type
- Show a Category X’s custom post type on Category X archive page?
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Display all taxonomy terms, add class if term applies to current post
- Return the latest post from a custom Taxonomy and Post Type
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Show custom post type relationships by taxonomy
- Group CPT posts by custom taxonomy
- Looping taxonomy in taxonomy?
- Advanced search form with filters for custom taxonomies and custom fields
- Listing custom post type items from a couple of custom taxonomies
- Custom post type and custom taxonomy archive inaccessible
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- loop through custom post-type with two meta_keys
- Catergory args causing loop not to show
- How do I filter a custom post type loop by a field?
- Custom Post type as Taxonomy
- display custom post type from register taxonomy
- How to change order of custom post types. I want Featured post to come first
- Get all active posts that are tied to a custom taxonomy for a custom post type
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- I want to show image from custom field image on my custom page template
- Custom Sort Order for Custom Post Type Taxonomy
- Complex Custom Loop with Includes
- Create a WordPress loop that shows posts from a custom post type + filters the posts by taxonomies while hiding empty taxonomies
- Add Custom Taxonomy Terms as CSS Classes for CPT Posts in an Elementor Loop Item Template
- WP_Query not using relation key as expected and not producing any results
- Creating subpages for each custom post type
- Category display using conditions
- edit index custom post type page with elementor or other
- How to Filter the Custom term loop based on dropdown