Trying to get the sidebar to display certain posts based on page / parent id.
The 'if' part works, but the 'else' fails to display anything. I want the 'else' to return the last three posts regardless of category.
<?php
global $post;
if (125 == $post->post_parent || 125 == $post->ID || 705 == $post->post_parent || 705 == $post->ID) {
query_posts( array( 'category__in' => array(5, 9, 155), 'posts_per_page' => 3 ) );
} else {
query_posts( 'posts_per_page=3' );
}
?>
What am I missing?