I'm having some retarded ass issue with some code. I'm not a coder at all, I copy and paste everything I need off the web and 99% of the time I can get it to work. But for the life of me I can't understand why this isn't working:
If I throw in some text before the query_posts (such as <p>Test</p>), it works all fine and dandy when I'm on the home page. However it won't post text from that category using the query_posts. What am I doing wrong?
PHP:
<?php if ( is_page('Shot Glasses') ) { ?>
<?php query_posts('category_name=homepage&showposts=10'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content(); ?>
</div>
</div>
<?php endwhile; ?>
<?php } ?>
If I throw in some text before the query_posts (such as <p>Test</p>), it works all fine and dandy when I'm on the home page. However it won't post text from that category using the query_posts. What am I doing wrong?