Forum

Thread tagged as: Question, Addons

Archive links show a single post for each month

Hey,

I'm trying to achieve the following:

My client creates a monthly 'winner' blog post, so just one post per month.

I have an archive set up to display the previous months and want these to link directly to the relative month's blog post.

I have updated the months_month_link.php file to resolve to the post.php file instead of the archive.php file, but the post doesn't show.

Can anyone advise on what tag(s) I need to get the post to display?

Darren Cusdin

Darren Cusdin 0 points

  • 6 years ago

Hey,

Anyone have any ideas on this? I'm sure it's an easy fix just need some direction.

Thanks!

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you saying you want a list of recent posts?

Hey,

No - I'm getting a list of months using:

<?php perch_blog_date_archive_months(); ?>

I want the links that this generates to link to the sole blog post for that month (there will only ever be one) Instead of outputting a list of blog posts.

For example, clicking on 'March' will take the user to a full post for that month.

I guess it could be a list of recent posts, as long as they were listed by month.

Drew McLellan

Drew McLellan 2638 points
Perch Support

How are these posts identified - is it with a tag or category or something?