Forums

Need simple conditional tag help in the loop (2 posts)

  1. davexw
    Member
    Posted 10 months ago #

    Hi all,

    I have this in my sidebar to show asides, but it isn't working:

    <?php
    	if (is_single()) {
    		query_posts('category_name=asides&showposts=3');
    	} else {
    		query_posts('category_name=asides&showposts=10');
    	?>

    What am I doing wrong? It breaks my theme on the index page, and just doesn't display the asides on the single posts. Any ideas?

    :)

    David

  2. mrmist
    Member
    Posted 10 months ago #

    No closing curly brace.

Reply

You must log in to post.

About this Topic