WordPress.org

Ready to get started?Download WordPress

Forums

Custom post type yearly archive (2 posts)

  1. beetrootman
    Member
    Posted 3 years ago #

    Hi,

    I've set up some custom post types. I cannot work out how to get yearly archives working with them. I have added a function to my functions.php that allows me to use 'post_type' in the wp_get_archives function to generate a list of years like this:

    <?php wp_get_archives('type=yearly&post_type=post_type_name'); ?>

    However when I click any of the years I got nothing. I presume I need to do something else? Any ideas, I really yearly archives of my custom posts.

    Thanks

  2. beetrootman
    Member
    Posted 3 years ago #

    Ok, this plugin:

    http://wordpress.org/extend/plugins/custom-post-permalinks/

    gets the permalink system working. But I still can't generate a list the gives links to the correct yearly archive.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.