What ended up working is adding the array key, “orderby” and adding menu_order:
<?php
// query for vidoes in the home page category
$args = array(
'post_type' =>array('videos', 'podcasts'),
'category_name' => 'Videos on Homepage',
'post_per_page' => 4,
'order' => 'DESC',
'orderby' => 'menu_order',
);
$loop = new WP_Query($args);
// start loop for first set of videos
while($loop->have_posts()) : $loop->the_post();
Related Posts:
- Sorting the Loop by Taxonomy Value
- Using meta_query, how can i filter by a custom field and order by another one?
- Custom post type archive 404’s with paginate_links
- Custom Post Type, WP_Query and ‘orderby’
- Sorting a query by custom field date
- Number of pages – multiple (custom) post types
- Display Custom Post Type Fields
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Retrieving 3 latest post from each of 5 different custom post types
- how to group custom post type posts by custom taxonomy terms
- Using Query Posts With Multiple Post Types And A Taxonomy
- How to get the parent’s taxonomy?
- Query not returning CPT posts
- Unable to display multiple post types in same query (WPML WP_Query)
- Query for posts in 2 taxonomies
- Custom Post Type sorted by Title
- Quickest way to get last or oldest post date – WP Query
- Sort by two dates. Default entry date and custom field if present
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- query_posts with a custom post type, a meta_query and sorting by post date?
- Custom query shows custom post types in trash
- Multiple post type queries (with specific arguments for each)
- Combining sorted and random CPT
- Display custom post type from dynamic custom field
- Query/list all terms and their custom post count
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Wp_query: sort by PHP variable
- Crafting WP_Query array, sort by date
- Get latest 3 posts from multiple CPT in one query
- WP_Query order by custom field, then randomly order some of results
- Polylang non-default language ignores tags in WP_Query
- Sort entries by date mixing two post types
- Different Ways to Query Custom Post Types?
- pagination not working for category.php (custom post types in categories)
- How to display Related Posts based on number of taxonomy terms matched
- How to make WP_Query not to show irrelevant posts?
- Loop for custom post types filtered by a taxonomy
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Pagination not working on custom query on a page
- find custom post type post by searching its custom field with my string
- FacetWP paging custom wp_query
- Can’t change posts per page in WordPress Post Type Query
- postsperpage value not being applied
- Sort results without WP_QUERY?
- Custom Post Type Query W/Category Dropdown
- Find Posts based on Child Post value
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- Custom Query: Multiple CPTs and a taxonomy filter
- WP query_posts group by meta field related
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- Custom wp-query display post only today
- Sort custom posts by date and then by taxonomy
- custom post type and a “sticky” position taxonomy
- Use WP_query to match post types based on custom field values
- How to sort by multiple values in a nested WP_Query
- How to use multiple orderby conditions on query search results? (orderby one post type, relevance)
- Wp Query sort order from custom MetaBox
- minimize wp_query call to database
- sorting in wp query based on custom field value
- Query the title of the page to show posts with matching category in the loop
- Main site single-property.php design, as homepage of a multisite
- Imported Content Doesnt Show Up On Frontend
- WordPress custom post type
- display news with pictures 3 small and one large (loop)
- Custom Query With Multiple Meta Key Value
- Custom post type blog pagination conflict
- How do I sort post listing by child post count?
- Query Posts From Multiple Post Types
- send user to first page of results when reposting to page?
- How do I correctly query posts from a post ID?
- How to exclude certain portfolios from a loop
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- Display ACF object field data using Elementor Custom Query
- Assign a tag to custom post type using a query
- Sort CPT by taxonomy AND THEN by custom field
- set object terms after some some time of published post – functions.php
- Get next and prev item from custom WP_Query and Custom Post Type
- Change search query in wordpress custom post type
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- Create if else for post types in WP_Query ‘post__in’ values
- WP Query from two Custom Post type fields as statement
- Custom post type archive page filters
- Alike Shortcode using in Custom Shortcode
- WP Query: If field X is empty, show posts based on field Y
- Query custom post type that has a serialized relational advanced custom field value
- Exclude a specific post in a Custom Post Type
- have to do a while have post to show for two custom post types sharing the same taxonomy?
- Display Parent-Child Posts in specific order by comparing IDs in array
- Random item on Custom Query working Local but not on live
- Filling custom post type posts from a rest api
- Display related CPT with custom taxonomy
- Query to show post current day
- Using ACF values in nested WP queries for CPT with date values in the past
- Pin posts to top of custom loop
- Apply category query clause to posts of custom type
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- WordPress sorting posts by date and title using a dropdown
- Display post count for a specific month
- WP_Query: how to search tags in addition to a custom post type?
- display post count in archive page that have relation with another taxonomy term