Forums

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

  1. davexw
    Member
    Posted 3 years 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
    Forum Janitor
    Posted 3 years ago #

    No closing curly brace.

Topic Closed

This topic has been closed to new replies.

About this Topic