• Resolved eyedea

    (@eyedea)


    Hi ??

    been trying and trying with no light in sight…. :”( and I have a feeling this must be one of these which is so easy once you know how….

    I’m working on a site for a friend of mine – https://cut-up.co.uk/
    I’ve set the overall Reading Options to only show one post per page. I’ve also created the archive as page and everything is working as it should. On the individual archive page though (for example ‘september 07’) – I would like to show more posts. I am showing these as titles alone and would like to show about 5.

    I can’t seem to be able to figure this one out… :”( I found that there was a plugin for a custom query – but it seems to be no longer available… the bits I find on the custom queries themselves confuse me…..
    any help would be greatly appreicated ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Your search-fu is weak, grasshopper.

    Check this topic: https://www.ads-software.com/support/topic/135636?replies=6

    Thread Starter eyedea

    (@eyedea)

    thank you, kind spirit ?? that was indeed a very quick and welcome response – thanks ??

    I’ve just downloaded the updated plugin, uploaded and activated it – but it’s not working still…. :”( and it looked perfect…
    My current archive page says this:

    <?php get_header(); ?>
    
    		<?php if (have_posts()) : ?>
    
    		 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    		<h4 class="pagetitle">Archive for the ‘<?php single_cat_title(); ?>’ Category</h4>
    
     	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    		<h4 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h4>
    
    	 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    		<h4 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h4>
    
    		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    		<h4 class="pagetitle">Archive for <?php the_time('Y'); ?></h4>
    
    	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    		<h4 class="pagetitle">Author Archive</h4>
    
    		<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    		<h4 class="pagetitle">Blog Archives</h4>
    
    		<?php } ?>
    
       <?php while (have_posts()) : the_post(); ?>
         <div class="post">
         <h2 id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
         <p class="postmetadata"><?php the_time('F jS, Y') ?>, <?php the_category(', ') ?></p>
          </div>
        <?php endwhile; ?>
    <div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&larr; prev') ?></div>
    			<div class="alignright"><?php previous_posts_link('next &rarr;') ?></div>
    		</div>
    
    <?php else : ?>
      <h2 class="center">Not Found</h2>
     <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
      <?php endif; ?></div>
    
    <!-- menu - calendar - links -->
    <?php include(TEMPLATEPATH . '/sidebar_archive.php') ?>
    
    <?php get_footer(); ?>

    is this correct…? – I did not edit much apart from getting rid of the content to show only titles of posts with dates….
    any thoughts would be great!

    Thread Starter eyedea

    (@eyedea)

    just thought – do I need the <?php if (is_archive()) : ?> anywhere…!?

    tried it in a few different places – after the header – after the if_posts… no luck…?! wrong direction?

    Thread Starter eyedea

    (@eyedea)

    done it!!! doh – rushing and not thinking it through properly….

    The updated CQS plugin worked perfectly – for my site – I needed to create a query string for ‘is_month‘ – and everything worked perfectly ??

    thanks again, HandySolo ?? ?? ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘archive page problem – want to show more… :”(’ is closed to new replies.