Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Add a year endpoint to WordPress categories.
Plugin Name: Yearly Archives for Categories
Plugin URI:
Description: Adds an endpoint to categories for yearly archives.
Version: n/a
Author: Christopher Davis
Author URI:
License: Public Domain
add_action( 'init', 'wpse31422_init' );
function wpse31422_init()
add_rewrite_endpoint( 'year', EP_CATEGORIES );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.