How can I change archive.php posts display?


I would like to change archives.php post listing as follows.
Whenever clicked on certain link in archives select drop down box, archive page should list posts from May – Dec of that year, plus Jan – April of next year.

Eg. If i clicked on archives drop down, 2015…Archives page will list all posts from the database starting from May 2015 to December 2015, also January 2016 to April 2016. This is to display posts in an annual year in the calendar.

My current wp archive have posts code like below;

// Start the Loop.
        while ( have_posts() ) : the_post();

             * Include the Post-Format-specific template for the content.
             * If you want to override this in a child theme, then include a file
             * called content-___.php (where ___ is the Post Format name) and that will be used instead.
            get_template_part( 'content', get_post_format() );

        // End the loop.
yjs 4 years 2020-03-23T12:51:51-05:00 0 Answers 96 views 0

Leave an answer