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
- Search multiple custom fields by using meta_query
- Displaying Posts Related to Other Posts by a Taxonomy Term?
- Set default option in dropdown of WP_Query?
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- Custom WP_Query not returning results when querying custom post type
- Order query using custom meta data
- Custom WP Query on custom meta and sort by multiple meta keys value
- Woocommerce search pagination not working
- Order Custom Post Type by Custom Field Value
- WP_Query custom post type query not showing the exact post type
- Change sort order when using ‘orderby’ => ‘type’
- How to get specific post meta by title or id
- Why are some of my custom posts not showing up on my page?
- WP_Query of custom post type sorted by meta_key has unexpected results
- Shortcode / WP_Query in post changes context
- WP_Query order custom post type with certain meta key value by post modified date
- Cant’ Display Custom Post Type Title Base on Tax Terms
- Sort custom post column by generated value?
- How to search through all child taxonomies using WP_Query?
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- Display posts of a hierarchical custom post type excluding parent posts
- get_post_meta for Custom Post Type ( CPT )
- How can I base a query off of the current page post type AND a meta value from another custom post type
- Fallback if statement based on the number filtered from it
- Get images only from a certain post type