At first, not everyone knows, but definetly should know, that there is a pre_get_posts hook which should, in most cases, be used instead of query_posts.
Further, defining only one custom post type results in bringing just one custom post type. It’s correct. When one want to bring both, custom post type and posts, one should use the abbility of post_type param acceptiong array, not only string. Thus, try this code:
function show_mini_feeds_on_home( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'post_type', array('post', 'mini-feed') );
}
}
add_action( 'pre_get_posts', 'show_mini_feeds_on_home' );
Related Posts:
- Pagination not working with custom loop
- Get the ID of the latest post
- How to use a custom post type as front page?
- Retrieving 3 latest post from each of 5 different custom post types
- Query for posts in 2 taxonomies
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- ‘category__and’ for custom taxonomy?
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- How to insert content from another Custom Post type into Post?
- Change or update WordPress loop based on dropdown selection
- Am unable to reset a query properly
- Get next and previous 3 posts in a term in single post page
- Show a Category X’s custom post type on Category X archive page?
- Different Ways to Query Custom Post Types?
- Listing all term items alphabetically / sorting loop
- pagination not working for category.php (custom post types in categories)
- 3 random images from custom post type, each in a div with a diffrent class
- Control content before and after custom post type loop
- Listing custom post types on archive page with array
- How to conditionally add Custom Post Type to Front Page
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Custom Post Type not showing in main loop
- postsperpage value not being applied
- Query all post types but limit to parents
- Custom Post Type Query W/Category Dropdown
- Changing WordPress sort order for returned child pages
- Add custom post type to query
- Custom Post Types Not Showing Up In query_posts Result
- Update query based on CPT / Post Type, show all sorted by date
- Shortcode with loop stacks output
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Can I show some specific post rather than latest post?
- Is it possible to add query parameters on the archive page?
- display news with pictures 3 small and one large (loop)
- $post breaking container loop
- Multiple Queries and Loops within CPT Archive
- Query Posts From Multiple Post Types
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- Listing custom post type items from a couple of custom taxonomies
- Pagination not working with custom loop
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- How do I correctly query posts from a post ID?
- How to exclude certain portfolios from a loop
- Render a loop in Timber (twig for WordPress)
- show custom post’s post in two different divs [duplicate]
- Query Multiple Post Types and Paginate Newly Created List
- creat filter with wp_query
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Best way to style first post differently?
- A to Z List of Custom Post Type in three columns
- Custom post type, organized by categories
- What’s the WP way to load remaining custom posts?
- Specific query for custom post type
- WP Query with categories only shows one post and ignores the category
- What to and how to proceed with CPT to make DB small and efficient?
- Polylang non-default language ignores tags in WP_Query
- How to edit this code to get the categories in achieve page?
- Category with post type pagination returns 404
- Post ID randomly printing on page
- A custom post within a custom post
- Display Custom Taxonomy Alphabetically
- Full Custom Post Type List Organised by two Taxonomies
- Displaying Custom Posts on a Page
- Shortcode not working with post counter
- Problem: wp_query outputs all images on site
- Display post content with respect to its title?
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Get custom post type’s fields in a while loop as variables
- Custom Post Type within the Loop on Homepage (Page Template)
- First custom field value (out of several) displayed twice after query
- The loop seems stuck to a single (now deleted) post
- Prioritize posts in query by meta keys?
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Query posts based on the meta key values of logged-in users?
- Posts per row on archive page (custom post type)
- What’s the equivalent of Hide From Menus on MODX on WordPress?
- How do I know the ‘meta_key’ for ordering my custom post type
- WP_Query orderby and tax_query
- Limit the post for differents custom post type in the same wp_query
- Custom Theme With Custom Loops
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Displaying Posts from Custom Post Types
- Custom Post Types strange pagination problem
- How to display posts by vote count and if no value continue with latest posts with no votes?
- BBPress Search results in WordPress search
- Custom post type archive page for multiple post types
- Custom post type conditional in loop
- How to organise this data within WordPress
- Display related custom taxonomy posts in sidebar
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- How do I control the output of a custom post type in the loop?
- How to display Related Posts based on number of taxonomy terms matched
- Display custom post type posts first, then default posts
- Custom post type posts don’t show in archive widget
- Custom Post Type Category Link