WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need some help about Custom permalinks for custom post types.

I have created a custom post type called "evento" and 3 custom fields for storing date, month and year of the events.

I would like to have a permalinks structure like this:


... where the standard structure would be:


How to make this magic happen in WordPress? I do not know much about .Htaccess =(

Thanks in advance!!!

share|improve this question
Have you searched the site? Resp. rewrite-rules, url-rewriting and htaccess? – kaiser Jul 31 '12 at 18:42
Yes, but found nothing very explanatory or that I could understand. Thank you. – Miriam de Paula Jul 31 '12 at 19:12
Please add what you've already tried so far and show us your research effort. Thanks. – kaiser Jul 31 '12 at 19:28
@kaiser How could I fix my pagination issue? – Miriam de Paula Jul 31 '12 at 23:05
Please add this as solution (you can mark it as answer in two days). Then go and open a follow up question about your pagination issue (link in there to this question). One question per question :) – kaiser Jul 31 '12 at 23:52

Problem solved!!!! =)

add_action('init', 'evento_add_rewrite_rules');
function evento_add_rewrite_rules( $wp_rewrite ){
    // Add day archive (and pagination)

    // Add month archive (and pagination)

    // Add year archive (and pagination)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.