Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm working on a new site and I'm having a problem with accessing archives. I've created a custom post type called 'sport', and I've changed the permalinks settings, so to access the sport section I use the following URL:

http://www.mysite.com/sport

I've also added an Archive widget to this section (filtered by year), so from the drop down I select the year and I am expecting to see all the posts sports from that year. But I get brought to the 404 page.

After selecting the year from the archive drop down, my URL looks like this:

http://www.mysite.com/sport/?m=2013&post_type=sport

When I manually edit the URL to look like this:

http://www.mysite.com/?m=2013&post_type=sport

I then see all the relevant posts, but I'm brought away from the sport section of the site. I want to remain in the sport section of the site and to see all the sport posts for the year selected.

Any help appreciated...

Regards.

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.