What result are you getting, for example an error message..?
Also would be useful to know what the $query_string is..
Anyway, try this:
<?php query_posts($query_string . ‘&cat=33&posts_per_page=10’); ?>
thanks. all i’m getting on the screen is the title of the category & the date
now i’m getting the date & the category title only – here’s the entire updated coding for the page. what am i missing???
<?php get_header(); ?>
<!– Content Wrap –>
<div id=”galleryWrap”>
<!– Gallery –>
<div id=”gallery”>
<?php if (is_page ()){ ?>
<? } ?>
<div class=”content”>
<?php query_posts($query_string . ‘&cat=33&posts_per_page=10’); ?>
<?php if(have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<div class=”date”>
<?php the_date(”); ?>
</div>
<div class=”title”>
<?php the_title(”); ?>
</div>
<div class=”entry”>
<?php the_content(”); ?>
</div>
<?php endwhile;?>
<?php endif; ?>
</div>
</div><!– [END] gallery content –>
<?php get_sidebar();?>
Just in case… When you say page, do you mean that you are pasting that code directly into the page? That won’t work.
You should create a template with the code in there. Then create a new page from the admin dashboard and from the attributes select the template you created.
http://codex.ww.wp.xz.cn/Pages#Creating_Your_Own_Page_Templates
Hope this helps.
From the code you’ve posted it looks you’re missing a closing </div> tag at the end just before the get sidebar line. (Unless you’ve included this somewhere in the sidebar code…)
tried to add in a </div> tag and no luck
so strange, right?
i can’t figure out what i’m missing. all that will display is the title of the category & the date the category was created
(instead of the content, titles & dates of the posts in the categories)
here’s the coding again in case someone can help:
<?php get_header(); ?>
<!– Content Wrap –>
<div id=”galleryWrap”>
<!– Gallery –>
<div id=”gallery”>
<?php if (is_page ()){ ?>
<? } ?>
<div class=”content”>
<?php query_posts($query_string . ‘&cat=33&posts_per_page=10’); ?>
<?php if(have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<div class=”date”>
<?php the_date(”); ?>
</div>
<div class=”title”>
<?php the_title(”); ?>
</div>
<div class=”entry”>
<?php the_content(”); ?>
</div>
<?php endwhile;?>
<?php endif; ?>
</div>
</div><!– [END] gallery content –>
<?php get_sidebar();?>
</div><!– [END] galleryWrap –>
<?php get_footer(); ?>
Where are you putting your code? Did you create the page template as buddha trance suggested?