Custom Month, Year Archives Page for Genesis??

Community Forums Forums Design Tips and Tricks Custom Month, Year Archives Page for Genesis??

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  ScorpionGod 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #63916

    ScorpionGod
    Participant
    Post count: 1

    Hi Guys,
    I’m developing my own Custom Child Theme for my website. I’d like to have my Archives Template to output my latest posts in the format below. (Visit the Example site for live version, Not mine!)

    September 2013

    • 1st Post
    • 2nd Post
    • 3rd Post
    • And all other posts published on September

    August 2013

    • 1st Post
    • 2nd Post
    • 3rd Post
    • And all other posts published on September

    I think you got the point now. Here’s the Live Example Site which uses that same thing above.
    >> http://spyrestudios.com/archives/

    I’m not a master in PHP, So I’m having issues with writing the Code Snippet for this purpose. Can someone help me to get this thing done? Here’s the Code Snippet to make you start…!

    <?php
    //* Template Name: Archive
    
    //* Remove standard post content output
    remove_action( 'genesis_post_content', 'genesis_do_post_content' );
    remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    
    add_action( 'genesis_entry_content', 'genesis_page_archive_content' );
    add_action( 'genesis_post_content', 'genesis_page_archive_content' );
    function genesis_page_archive_content() { ?>
    
    	<h4><?php _e( 'Monthly:', 'genesis' ); ?></h4>
    	<ul>
    		<?php wp_get_archives( 'type=monthly' ); ?>
    	</ul>
    
    	<h4><?php _e( 'Recent Posts:', 'genesis' ); ?></h4>
    	<ul>
    		<?php wp_get_archives( 'type=postbypost&limit=100' ); ?>
    	</ul>
    
    <?php
    }
    
    genesis();
    

    Best Wishes,
    Shyam.

    http://local
    #74462

    Susan
    Moderator
    Post count: 7495

    Hi, as you posted this a while back, I hope you got your issue resolved. If not, please check back, and I will escalate for you. If it is resolved, please mark “resolved”, and I will close it. Thanks!


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #74642

    ScorpionGod
    Participant
    Post count: 1

    Hi Susan,
    I solved my issue alone. No one helped me ;) Anyway thanks for the late checkup. :)

    Thanks!
    Shyam.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Custom Month, Year Archives Page for Genesis??’ is closed to new replies.