studiopress / genesis-sample

This is the sample theme created for the Genesis Framework.
https://demo.studiopress.com/genesis-sample/
528 stars 284 forks source link

category archive does not work #329

Closed ghost closed 4 years ago

ghost commented 4 years ago

category pages do not work if I add a . in Category base

remove-category-slug-using-dot

nickcernis commented 4 years ago

category pages do not work if I add a . in Category base

A dot on its own is not a valid category base, so you will see the same for all themes including Twenty Twenty.

If you want to use /%category%/%postname%/ as the custom structure, you can leave the “category base” empty and still access category archives at /category/your-archive-slug/. Or you can set a short category base such as “cat”. WordPress doesn't support naked tags or categories at the root level, unfortunately, so you need a valid prefix for the base.