Find us on Facebook

LightBlog
Responsive Ads Here

Thứ Tư, 27 tháng 12, 2017

Taxonomy archive always gives a 404

Question:

Hi!
I’ve created a custom taxonomy just like the example in the “register taxonomy” reference page. It’s working in the admin page and is listed in the single post page but I the search always gives a 404.
This works:
domain.com/category/books
domain.com/tag/portugal

This doesn’t, always gives a 404:
domain.com/genre/fantasy (note: there is a slug “fantasy” in the “genre” taxonomy and there are a few posts classified in “fantasy”).

Anyone knows what could be the problem?
Thanks in advance!

Answer:

IF you didn’t do so after creating the taxonomy, go to settings->permalinks and click “save”. That will add the taxonomy to the permalink structure and should resolve the 404 issue.

Không có nhận xét nào:

Đăng nhận xét