$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
- Custom Taxonomy Template Post List with Sort Order
- 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?
- Automatically assign a custom post to a custom taxonomy based on custom field value
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- 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
- Get_post_meta() won’t return value
- 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
- Create a random unique 6 digit number as custom field for custom post type
- How to insert content from another Custom Post type into Post?
- Filter by custom taxonomy slug on a custom post type
- Only show posts from a certain category?
- WP_Query orderby modified to include custom meta changes
- 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?
- Retrieve value of a category’s custom field
- Calculate all custom field values in the post loop
- wp_query check if integer exists in custom field’s array
- Custom loop with multiple taxonomy queries
- Custom post type multiple loop by taxonomy term
- List custom taxonomy specific to one custom post type
- Return the latest post from a custom Taxonomy and Post Type
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- What’s the WP way to load remaining custom posts?
- Dynamic dropdown select values depending on other custom field value
- Display Custom Taxonomy Alphabetically
- Full Custom Post Type List Organised by two Taxonomies
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- get_the_title() is returning results from previous loop
- Main query not querying any posts in custom taxonomy template
- Control content before and after custom post type loop
- Targeting categories in custom fields
- Custom taxonomies to define versions of a product
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Many to many to many custom post relationships
- Custom Post Type not showing in main loop
- My custom taxonomy is only displaying 1 of 3 terms
- Reusable metabox backend and frontend
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- Custom post types category
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Custom Taxonomy dont save in a frontend form for post a custom post
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Should i use custom post type for a custom footer?
- How can i loop through custom post type according to custom meta field?
- How do I ensure that post_type and Taxonomy use the same slug?
- How can I loop at a Specific Taxonomy from a custom post type?
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Custom taxonomy terms as children of multiple custom post types
- Custom archive page for custom taxonomy and pagination issue
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Custom post type paging return home page
- when looping through custom post data not appearing
- How to avoid duplicate posts queried from custom meta?
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Display Custom Field or Custom Taxonomy in front page /post/product
- Some posts not displaying by taxonomy term
- PHP Warning with Custom Fields
- Multiple Custom Post Type in Taxonomy Archive Causing White Screen
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Show parent category and subcategory once in while loop
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Loop to display parent categories in custom taxonomy
- Sort loop by custom field from different post type
- Show posts for current taxonomy
- WordPress loop, show only one post per custom field
- Need some suggestion/help with custom post types project
- Custom post type with custom taxonomy permalinks
- Custom taxonomy page template
- Loop with Custom Post Type and Taxonomies
- How to get past and upcoming post by defining date in custom field?
- Loop multiple taxonomy in custom post
- WordPress Custom Post Type and sort by Tags
- Display posts from category in page
- Get result from Custom Field in Custom Post type
- If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?
- Sorting custom post types by taxonomy (So close)
- Looping taxonomy in taxonomy?
- Advanced search form with filters for custom taxonomies and custom fields
- How do I filter a custom post type loop by a field?
- Custom Post type as Taxonomy
- display custom post type from register taxonomy
- 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
- Custom Sort Order for Custom Post Type Taxonomy
- WP_Query not using relation key as expected and not producing any results