Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cat = get_queried_object();
- $cat_id = $cat->cat_ID;
- $args = array(
- 'post_type' => 'post',
- 'type' => 'yearly',
- 'cat'=>$cat_id,
- 'echo' => 0
- );
- $list = wp_get_archives($args);
- echo "<ul'>$list</ul>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement