I think you may need to add the feat_yes
as a meta_key
$temp_args = [
'post_type' => array('current-channel', 'post', 'current-episodes'),
'post_status' => 'publish',
'meta_key' => 'feat_yes',
'orderby' => array(
'meta_value_num' => 'ASC', /* or 'meta_value' */
'post_type' => 'ASC',
'modified' => 'DESC',
'date' => 'DESC'),
'posts_per_page' => $data->{"no_articles_" . ICL_LANGUAGE_CODE},
'tax_query' => [
[
'taxonomy' => 'category',
'field' => 'term_id',
'terms' => $cat_today,
],
],
];
$q = new WP_Query($temp_args);
Here’s a few relevant links:
Related Posts:
- Query multiple custom post types in single loop
- Inject post (from specific category) between posts in Loop
- Build a content and excerpt grid loop with paging and options for # of posts
- Alter secondary loop to exclude posts from current page category
- How to get to a specific position in wp_query?
- have_posts() execution failure
- Using foreach loop breaks
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- WP_Query fails despite having 1 post
- wp_query get the 2nd post
- How to get post ID in a Page?
- Display an image if odd number of posts in grid
- How to add div blocks after certain set of post
- How to overwrite orderby with add_query_var
- get_the_ID() in the footer returns wrong value
- Get all posts as an array ID => Name
- WP_Query multiple post results
- Do not duplicate posts with multiple categories in multiple loops
- Infinite Loop – WP_Query
- Dividing the loop to style post differently
- How to extract information from a wp_query result?
- Search.php gets metadata from first post
- the_post(); prints out style text into my HTML?
- Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
- Wp Query : Order by distance lat,lon
- in_array not working on dev server but works on localhost
- Making list of posts with chosen description
- My query keeps looping infinitely ! how to stop it?
- Efficient way of querying for a “fallback” post?
- For each 3 posts, show a different post type
- Add post class in custom loop (WP_QUERY)
- Create a hierarchical loop at predefined markup requirements
- Advanced Taxonomy query, with 3 post types
- Why does a meta_query break this WP_Query?
- WordPress post pagination on custom template not working
- Pagination in category.php not functioning
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- How do I exclude the current post from the upcoming post query
- How do I display WooCommerce products in my query to rows of 3?
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress
- Best Practice for PHP
- How to add active class to custom menu using while loop and wp_list_pages
- how to display active, upcoming and past event with featured listing with pagination
- Get list of WP Updates Across Sites
- WP_Query sort using multiple numeric meta values
- How do I display the function the_content in this loop?
- Facebook “like” open graph meta in header.php
- How to hide all child pages with post_query?
- How to sort posts based on the value (number) of a post’s metadata?
- How can I add extra word in permalink when someone click download button?
- Get users that likes the post
- Woocommerce : Can’t get product info in loop
- inserting a post from an extern php file but post content doesn’t show on wp site
- Can we count the WordPress Loop
- Using wp_query to modify the loop in index.php for a CPT
- Assign custom parameter to each post in query
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Last class on last headline?
- extract serialized array to use for wp-query
- How to remove only the latest sticky post from the loop
- Echoing a CSS class based on category of post in a list
- pagination broken – clicking next displays “page not found”
- Let current user know pending posts counts using wp_query
- get_terms with specific id order
- Page that lists publications by classifying them by taxonomy
- “pre_get_posts” orderby custom date field in different format?
- How do I get pagination for get_posts() in WordPress or do I have to rewrite the whole code?
- wp_query – Exclude the first thumbnail from lazy loading on archives
- Check if current post in loop is last on current page
- Usermeta data unserialize, extract and display in table in WordPress
- Query on a repeater date (acf)
- Trying to get pagination working on WP_Query() post grid
- Check the database for a postmeta field
- Accordion headings cuts off to second line on collapsing a accordion heading (used acf repeater)
- WordPress Recent Posts – Loop
- WP_Query To Display Product Of Brand On Taxonomy Page
- ACF background-color per post in a WordPress loop
- Advertisement in Loop Posts wordpress
- How to display last whole post on the homepage
- wp_query beginner
- Adding custom PHP to existing loop in Genesis
- How to Pass Current Taxonomy Terms into new WP_Query?
- WooCommerce – Print Processing orders [closed]
- Loop returns more items than exist?
- Modify category archive page loop on functions.php
- WP_Post is not from correct array
- Post formating on Home page
- divide custom field values in div every two values
- List of child pages fetch next results at link click
- How to get category pages to look like a certain archive page?
- Pagination on Custom Loop
- Post Title Not showing up
- Custom single.php files for different post formats
- Troubleshooting “loopback requests that take too long”
- Help with if/else loop [closed]
- Display biography post for today’s birthday person
- Variable ++ in query loop
- a problem in class in class-wp-hook.php
- Count custom posts type and filter by tag
- AJAX WP_Query’s order and orderby parameters not working