$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?
- clients list using wordpress
- Custom Taxonomy Template Post List with Sort Order
- How to do a custom bookmarks post type?
- Order custom posts by taxonomy?
- Conditional two level dropdown filter for custom post type
- Show all custom post type posts sorted by custom taxonomy then by another custom taxonomy
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy posts on Archive page
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- 404 error PageNavi custom type taxonomy | wordpress
- Custom post type / custom fields
- Query for posts in 2 taxonomies
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- Automatically populate a hierarchical taxonomy from a custom field
- Custom Post Type Loop within Shortcode
- get_template_part for each level of taxonomy term
- Normal pages as children of my Custom Post Type
- Display CPT posts based on specific taxonomy
- Meta Key Value in current-user-only loop
- Loop custom taxonomy to get lists of cutom post types?
- 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?
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Group CPT posts by custom taxonomy
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Display Custom Taxonomy Alphabetically
- Hierarchy and access control for Custom Post Types (CPT)
- First custom field value (out of several) displayed twice after query
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Listing all term items alphabetically / sorting loop
- Show fields based on taxonomy selection in editor
- Display related custom taxonomy posts in sidebar
- Permalinks: custom structure for taxonomy – tags?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Three Most Recent Posts, One Per Term
- Creating custom post type with custom taxonomy and custom fields programatically
- looping though custom post types and only return results in a given taxonomy
- How to conditionally add Custom Post Type to Front Page
- Dynamically insert code to custom post type loop
- hide specific div on single.php [closed]
- Custom Taxonomy Search result page
- How to get_term_meta on single custom post?
- How do you output an unknown number of images in a custom post type with desired markup?
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- Pull in taxonomy field of custom post type in new query
- Get post content from another section in custom single page
- How to fetch custom post types with its full data on wordpress?
- How to populate a Gravity Forms Custom Post Field (dropdown type) with custom taxonomy terms? [closed]
- Get custom term meta problem on single post type
- Custom post type name and assigning custom taxonomy
- get_terms() parent, child and grandchild
- Building a Portfolio and need some direction
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Displaying information from custom field on custom post type
- Create a custom taxonomy template that loops through child categories in term order?
- Get post-meta value of all custom-posts – lowest to highest year-count?
- Order custom posts by taxonomy, then by meta_key
- How do i display post from a taxonomy term?
- Custom PT, Taxonomys and wordpress query
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- How do I list a custom field and custom taxonomies for each result in a loop?
- Writing a custom Glossary plugin
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- add_filter get array data before display in custom post_type
- ACF – Retrieve custom taxonomy from a relationship field
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- Display Posts that fit a certain criteria on Category pages
- wp_insert_post deleting previous post custom meta
- Combine multiple separate lists into one
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- I want to create a metabox under custom taxonomy
- Query posts by multiple custom fields
- Display title of all custom posts from same taxonomy term on a custom post template
- sorting in wp query based on custom field value
- Create Inclusions and exclusions
- WordPress query in which condition uses custom field
- WordPress loop add heading before first of type
- Custom post types not displaying per category
- Error in WP Query. If variable is empty it is displaying previous post value
- Looping through custom taxonomy in one template
- Best way to use Category & Custom Fields?
- predefined custom field on registration page
- Show Custom Post Type taxonomy term that matches custom field
- Storing/querying custom date data
- Display Custom Taxonomy of custom post type
- 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
- 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
- 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