Archive page for custom taxonomy grouped by month
-
0
down vote
favoriteI am working on archive page of custom taxonomy of custom post types. I need to show archives by month of particular taxonomy.
For retrieving post in particular taxonomy by month. However, I have used following code.
function my_custom_post_archive_where($where,$args){ $post_type = isset($args['post_type']) ? $args['post_type'] : 'post'; $where = "WHERE post_type = '$post_type' AND post_status = 'publish'"; return $where; } add_filter( 'getarchives_where','my_custom_post_archive_where',10,2);But above filter gives all post in certain post type. I only need posts in particular taxonomy and also its respective pages.
For example:
Archives:
July 2015 June 2015
How can I do it? Please anyone suggests me, as I am really trapped here.
Thanks in advance :)
- The topic ‘Archive page for custom taxonomy grouped by month’ is closed to new replies.