Since you’re dealing with custom taxonomies, you must mention that custom taxonomy in has_term().
if ( $prr_query->have_posts() ) {
while ( $prr_query->have_posts() ) {
$prr_query->the_post();
if (has_term('proteger', 'prr')) {
the_title();
}
}
}
Related Posts:
- Show posts without term
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- display ACF repater field in archive page
- Display posts the match taxonomy term linked from wp_list_categoies?
- List taxonomy terms plus their latest post ordered by post date
- Get array of current post term ID’s
- Function get_queried_object() return NULL in custom taxonomy
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- List custom taxonomy terms sharing posts with a term from a second custom taxonomy
- How to Filter Posts by Custom Fields?
- How to order posts by title after they have already been sorted by category
- Search form not working with custom query?
- Post loop for all taxonomy terms
- Custom taxonomy.php not working
- Filter Custom Taxonomy Posts
- How to add custom meta to ‘pre_get_terms’?
- get term id from term name
- WP_Query to output chosen term and posts with no term assigned
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- How to print term name inside wp post loop
- Query Taxonomy By Page Title
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- How can I do a orderby by the number of items? So basically list by starting with the array with the largest number of post
- How do I stop the same post showing multiple times in a archive?
- Get categories within specific term
- How to define a custom hierarchy for terms?
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- tax_query not working properly with get_posts
- taxonomy-{term}.php terms pagination returning 404 after a certain page
- Multiple WP_Query loops with Pagination
- Too slow when using both ‘tax_query’ and ‘meta_query’ both in WP_Query
- How can I save an array from a random post sequence for later use?
- How to order category.php loop by ‘meta_value’?
- Add inline HTML to posts published within last 24hrs
- Pagination not working Search posts
- Change default ordering of taxonomy terms – pre_get_terms
- WP_Query, tax_query and term_meta: How to?
- WP_Query loop within WP_Query loop
- Operations with custom fields values in a loop
- Refine search results using WP_Query
- How to pass many ids in post__in?
- How to show subcategories using loop?
- Sub-loop / nested loops Best Practices
- Order posts by taxonomy count
- Any number in meta key (wp query)
- How do I run through a WordPress loop called from a filter function?
- How do I get the title of a category in a custom loop?
- Out Of memory issue on post per page parameter
- Display Custom Taxonomy Alphabetically
- Check if loop has any categories?
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- Using WP_Query and Query_post for the loop?
- How to Order a list of taxonomies? orderby?
- Conditional operator OR not working with custom fields
- Get posts that do not have the same tags as current
- Should I reset $wp_query?
- Exclude a Woocommerce product from WP_Query
- WP_QUERY wrong ammount of posts
- How to add sort order to incremented and paginated category loop
- One WP_Query that always shows 1 post from category X and 1 post from “not in category X”?
- Expecting statement error from php loop using ACF plugin
- List terms of custom taxonomy if matches other taxonomy
- Offset WP_Query by negative 1
- WP_Query orderby random do not repeat infinite scroll – one loop
- $post in wp_query?
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- How to pass the current content of $wp_query to a new page?
- WP Query by 4 different taxonomies
- Can I alter the main loop to ‘orderby’ a custom callback?
- WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination
- WP Query for all events prior to current date
- list all post who have mutual taxonomy as current taxonomy!
- Regarding a custom loop and output HTML tags
- What’s causing an infinite loop?
- Displaying posts from sub taxonomies only
- Taxonomy archive, categorised by other taxonomy, not hiding empty taxonomies
- pages shortcode filtering by category
- get term objects and post objects in query
- How to show terms used only for particular custom post type. Filter creation perpose
- How to show terms from another taxonomy
- Second WP_Query loop shows data from main query
- My entry results are not consistently alphabetized
- Meta Query if Values Don’t Exist
- Output slugs to use as class names for every taxonomy a post is attached to
- I cannot get tax_query in get_posts() to work with custom taxonomy
- display post multiple times based on array of dates
- Custom query for tag and custom tag from 2 post type
- WP_Query secondary query failing
- Sorting is not working in WordPress WP_Query
- Add custom WP_Query after the first 3 posts
- Post data in separate divs with incrementing class using WP_Query
- Order posts with custom taxonomy array
- How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query
- display custom post type from register taxonomy
- Query for page content, and query for posts on the same page?
- How to get rid of extra Untitled Article in html5 document outline when using new WP_Query?
- after refresh the id that shows correct in first time click, changes to 1
- WP_Query on custom taxonomy -> Location and Activity
- How to display only posts from the last day with posts published?