Yes. I tried using the default theme and this problem also happens. The current permalink structure is: /%category%/%postname%/.
Do you think that this might have something to do with this?
As for the problem with query_post(), unfortunately, I’m just a newbie in PHP and really can’t find a way to make this work. ??
I’m using the archive.php file and here is the code (hopefully it helps).
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<div class=”box post”>
<div class=”content”>
<div class=”post-title”>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1><!–Category:–> <span><?php single_cat_title(); ?></span></h1><?php if(category_description()) { echo ‘<span class=”description” style=”font-size: 13px;”>’.category_description().'</span>’; } ?>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1><!–Tag:–> <span><?php single_tag_title(); ?></span></h1>
<?php if(tag_description()) { echo ‘<span class=”description” style=”font-size: 13px;”>’.tag_description().'</span>’; } ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1>Archive: <span><?php the_time(‘F jS, Y’); ?></span></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1>Archive: <span><?php the_time(‘F, Y’); ?></span></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1>Archive: <span><?php the_time(‘Y’); ?></span></h1>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h1>Author Archive</h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<h1>Blog Archives</h1><?php } ?>
</div>
<!–<div class=”tag-description”>
<?php echo tag_description(); ?>
</div>–>
</div>
</div>
<?php while (have_posts()) : the_post(); ?>
<div class=”box post” id=”post-<?php the_ID(); ?>”>
<div class=”content”>
<div class=”rank”><img src=”<?php echo get_post_meta($post->ID, ‘posts-rank’, true); ?>” /></div>
<?php $postimageurl = get_post_meta($post->ID, ‘post-img’, true); if ($postimageurl) { ?>
<div class=”pic fl”>
” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><img src=”<?php echo $postimageurl; ?>” alt=”Post Pic” width=”200″ height=”200″ />
</div>
<?php } ?>
<div class=”post-title”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
</div>
<!–/post-title –>
<div class=”post-date”><!–On <?php the_time(‘m.d.y’) ?>,–> Category: <?php the_category(‘, ‘) ?><!–, by <?php the_author_posts_link(); ?>–></div>
<div class=”post-excerpt”><?php the_excerpt(); ?></div>
<!–/post-excerpt –>
</div>
<!–/content –>
<div class=”hl”></div>
<div class=”social-links”>
<div class=”fl”>
<span><?php comments_number(0, 1, ‘%’); ?></span>
#comments” title=”View Comments”>Comments
</div>
<div class=”fr”><span>#respond” title=”Post Title – Read more…”><?php the_title(); ?> – Read more…</span></div>
<br class=”fix” />
</div>
<!–/social-links –>
</div>
<!–/box –>
<?php endwhile; ?>
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?>
<?php /*
- <?php next_posts_link(‘« Older Entries’) ?>
- <?php previous_posts_link(‘Newer Entries »’) ?>
*/ ?>
<?php else : ?>
<div class=”box post”>
<div class=”content”>
<div class=”post-title”>
<h1>No Posts Were Found</h1>
</div>
</div>
</div>
<p style=”padding-left: 20px;”> </p>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
If you guys think that my questions are a bit out of place, please don’t hesitate to let me know.
Thanks again! ??