Trouble filtering
-
Hi, I wonder if someone could help. I’ve been let down by someone who was creating a site for me and I’m in the process of trying to work out the last few remaining problems myself.
One is to archive News/Blog stories annually. I have downloaded the Annual Archive plugin which is displaying fine but when I click the years it doesn’t filter, it just reloads all the stories and I can’t figure out what I need to do to get it working.
Not sure how this all works so I’ve included the link and code below.
If any could help you would be doing me a massive favour.
Thanks
https://www.portlandconsulting.co.uk/news
<?php /* * Template Name: Hybrid Blog (2-columns) */ get_header(); ?> <!-- Super Container --> <div class="super-container full-width main-content-area hybrid-blog-2" id="section-content"> <!-- 960 Container --> <div class="container"> <!-- ============================================== --> <div class="ten columns alpha hybrid"> <!-- CATEGORY QUERY + START OF THE LOOP --> <?php get_template_part( 'element', 'categoryfilterquery' ); ?> <?php while (have_posts()) : the_post(); ?> <!-- THE POST EXCERPT --> <div class="the_content post type-post hentry excerpt clearfix" id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <hr class="partial-bottom" /> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> <div class="meta"> Posted on <?php the_time('jS');?> <?php the_time('F');?> </div> <?php if (has_post_thumbnail( $post->ID )) { // Check for Sencha preferences, set the variable if the user wants it. // Unused as of 1.04 for the time being until some bugs get sorted out if (get_option_tree('sencha') == 'Yes') { $sencha = 'https://src.sencha.io/'; } else { $sencha = ''; } // Grab the URL for the thumbnail (featured image) $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); // Check for a lightbox link, if it exists, use that as the value. // If it doesn't, use the featured image URL from above. if(get_custom_field('lightbox_link')) { $lightbox_link = get_custom_field('lightbox_link'); } else { $lightbox_link = $image[0]; } ?> <div class="seven columns alpha omega"> <?php echo excerpt(20); ?> </div> <div class="three columns alpha omega"> <div class="aside"> <a href="<?php if (get_option_tree('open_as_lightbox') == 'Yes') { echo $lightbox_link; } else { the_permalink(); } ?>" <?php if (get_option_tree('open_as_lightbox') == 'Yes') { ?>data-rel="prettyPhoto[Gallery]"<?php } ?>> <img src="<?php echo $sencha; ?><?php echo $image[0]; ?>" alt="<?php the_title(); ?>" /> </a> </div> </div> <?php } else { ?> <div> <?php echo excerpt(20); ?> </div> <?php } ?> </div> <!-- /THE POST EXCERPT --> <?php endwhile; ?> <!-- /STOP LOOP --> </div> <div class="four columns omega sidebar"> <?php dynamic_sidebar( 'default-widget-area' ); ?> </div> <!-- ============================================== --> <div class="fourteen columns content"> <!-- Previous / More Entries --> <br /> <hr /> <div class="article_nav"> <div class="p button"><?php next_posts_link('Previous Posts'); ?></div> <div class="m button"><?php previous_posts_link('Next Posts'); ?></div> </div> <br class="clearfix" /> <!-- </Previous / More Entries --> </div> <!-- /CONTENT --> <!-- ============================================== --> </div> <!-- /End 960 Container --> </div> <!-- /End Super Container --> <!-- ============================================== --> <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Trouble filtering’ is closed to new replies.