Recently i just done installing Sadish’s Worpress Theme ILove Music on one of my client site binaMuslim, running the latest WP 2.1.3.
There’s Aside implementation on the Theme, but unfortunately when i tried to used it it didn’t work. Here is the sympthomps :

  1. It did a good job eliminating the aside’s category from displaying on the main column
  2. But it didn’t display the right category on its block on the sidebars, but showing posts all categories instead

After several trial and error, i see in the functions.php that it still use the old WP 1.2 version of the_loop :
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

so i change it to something like this :
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

so including the query_posts part of the functions goes like this :

<?php query_posts("cat=" .$sideCatId. "&showposts=" .$NumPosts );
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<h4 class="note"><em><?php comments_popup_link('(0)', '(1)', '(%)','',''); ?></em><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h4>
<div class="entry">
<?php the_excerpt(); ?><?php edit_post_link(); ?>
<?php endwhile;?>

And it works :)


Sorry, the comment form is closed at this time.