You say you created this template. What went into its creation — was it just copied from another template? It could be using something like query_posts() to initialize The Loop, which would override the plugin.
Also, any other plugins running which could conflict with CQS?
Thread Starter
vaprak
(@vaprak)
There aren’t any other plugins installed atm.
Basically, all I did was rename the index.php to archive.php. Nothing changed.
Here is the beginning of the Loop:
<?php if (have_posts()) { while (have_posts()) { the_post(); ?>
<?php the_date('','<h2>','</h2>');?>
<div class="centreblock">
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="meta"> by <span class="storyAuthor"><?php the_author() ?> </span> @ <?php the_time() ?>.<?php edit_post_link(); ?> Filed under <?php the_category(', ') ?>
Thanks again.
-mike
Thread Starter
vaprak
(@vaprak)
I think problem is solved.
I set “Blog Pages” in the “Reading Options” to “-1” (it was set to “1” as I only wanted the latest post to show on main page). Then I made an “is_home” query in CQS and set the value to “1”. Now everything appears to be working.
I’d be curious if there was another solution to the behavior though.
Thanks again.
-mike
You can make it relaively painless – meaning without editing any of the template files, with this plugin:
http://mattread.com/archives/2006/01/custom-query-string-27/
(this is for WP 2 – there was an earlier version, too)
Thread Starter
vaprak
(@vaprak)
That’s the CQS plugin I’m using already.
Thanks.
-mike
vaprak, I’m not sure what the issue is you’re hitting here. CQS will override whatever is in Options > Reading for each query type that’s set, and I’ve never seen the need for such a workaround. I’d suggest contacting the developer Matt Read and let him know about your problem.
I tried this out, and it worked.
One post at the main page, and all posts are being displayed when looking at the archive for a specific month.
Even though this post is two months old I wanted to post in it so that the author might change it to solved, and so that others will know that this works.
Oh, and yes, I’m using WP 2.0