0

I found here: Category archive by year with permalink support /category/YYYY the solution to obtain a category-by-year archive also supporting perma:

function catyeararchives_init()
{
    add_rewrite_endpoint( 'year', EP_CATEGORIES );
    
}
add_action( 'init', 'catyeararchives_init' );

The only problem is that pagination doesn't work and after the first page I get a 404 error. Any idea on how to do? Thanks.

5
  • Did you flush your site's permalinks (go to the Settings -> Permalinks page in your admin pages and click Save Changes)?
    – Pat J
    Commented Jun 9, 2021 at 14:06
  • 1
    Yes, I did... It was the first doubt I had...
    – Miss-Take
    Commented Jun 9, 2021 at 14:45
  • 2
    Does this answer your question? Category archive by year with permalink support /category/YYYY Commented Jun 9, 2021 at 18:21
  • Flagged as duplicate. Mentioned Post includes pagination solution as the accepted answer. Commented Jun 9, 2021 at 18:21
  • 1
    The other solutions don't seem to filter by category: they only obtain a standard archive navigation...
    – Miss-Take
    Commented Jun 9, 2021 at 20:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.