I have a custom post type called 'press_release'
I have a few posts, and viewing them uses the 'single-press_release.php' template file. This all works fine, however i want to have a monthly archive list for just this post type.
<?php wp_get_archives();?>
Displaying this in my single-press_release.php page displays a monthly archive list for standard blog posts, and not the press releases, how do i do this?
wp_get_archives doesn't work with custom post types. Check this discussion: http://wordpress.org/support/topic/archive-list-and-page-for-custom-post-types-mysql?replies=9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With