Every one knows the basic WordPress loop, every one knows that if you want just posts in a loop you put query_posts("post_type=post");
BEFORE the loop. which I have done.
The problem is I have a custom post type, called mini feeds, which shows up in my loop, the problem is, its the only thing that shows up. I have 60 posts, under post type posts and NONE of them show up, just this one (because there is currently only one) mini feed.
The custom post type looks like this:
public function aisis_mini_feed() {
$labels = array(
'name' => _x( 'Mini-Feeds', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Mini-Feed', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Mini-Feed', 'text_domain' ),
'parent_item_colon' => __( 'Parent Mini-Feed:', 'text_domain' ),
'all_items' => __( 'All Mini-Feeds', 'text_domain' ),
'view_item' => __( 'View Mini-Feed', 'text_domain' ),
'add_new_item' => __( 'Add New Mini-Feed', 'text_domain' ),
'add_new' => __( 'New Mini-Feed', 'text_domain' ),
'edit_item' => __( 'Edit Mini-Feed', 'text_domain' ),
'update_item' => __( 'Update Mini-Feed', 'text_domain' ),
'search_items' => __( 'Search Mini-Feeds', 'text_domain' ),
'not_found' => __( 'No mini-feeds found', 'text_domain' ),
'not_found_in_trash' => __( 'No mini-feeds found in Trash', 'text_domain' ),
);
$rewrite = array(
'slug' => 'mini-feed',
'with_front' => true,
'pages' => false,
'feeds' => true,
);
$args = array(
'label' => __( 'mini-feed', 'text_domain' ),
'description' => __( 'Mini-Feed custom post type', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'revisions', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_icon' => 'http://icons.iconarchive.com/icons/fatcow/farm-fresh/32/folders-icon.png',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'query_var' => 'mini-feed',
'capability_type' => 'post',
);
register_post_type( 'mini-feed', $args );
}
My question?
- Why is this mini feed showing up in my loop?
- Where did the rest of my posts go?
My loop
query_posts("post_type=post");
if(have_posts()){
while(have_posts()){
the_post();
the_title();
the_content();
}
}