Need help get uncatigorized blog post
-
I am making a page template that can display uncatigorized post and the code I have isn’t working.
<?php
/**
Template Name: posts
*/get_header(); ?>
<div id=”primary” class=”content-area”>
<div id=”content” class=”updateable site-content” role=”main”>
<?php query_posts(‘category_name=Uncategorize’);?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1>“><?php the_title(); ?></h1>
<p><?php the_content(); ?>
<?php endwhile; else: endif; ?></div><!– #content .site-content –>
</div><!– #primary .content-area –><?php get_sidebar(); ?>
<?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Need help get uncatigorized blog post’ is closed to new replies.