Hi there. Our company is confused as to how a blog entry is categorized. When I choose multiple categories that my blog applies to, only one or sometimes none of them are included in the URL. I also don’t know if keywords or tags are better. The main issue is how the blogs fall into one category (for instance we sell surveillance cameras, so one category is “security” and another is “crime”, and sometimes I’ll choose both). If I select both, only one will show up, sometimes neither. Help! Thanks!
Dan Wolfgang on February 24, 2014, 9:18 a.m. Reply
From the sound of it, you may have multiple individual entry archive types defined or multiple mappings of the individual entry archive type, and perhaps those are being confused? Go to Design > Templates and find the Archive Templates section, where you’ll likely see a template named “Entry.” Click it, then find Template Options and Archive Mapping. The path shown here dictates what the URL looks like — by default, it’s
yyyy/mm/entry-basename.html
, and as you can see that doesn’t include the category name. You can change this by choosing a different mapping from the drop down; perhapscategory/sub-category/entry-basename.html
is more suited to the result you want. (You’ll need to republish the blog after making such a big change… but note my disclaimer below, first.)Note that the URL will only show one category — the primary category. On the Edit Entry scree, when you assign categories, notice that one of them gets a small green star to identify it as the primary category.
I realize this information isn’t necessarily a clear solution to your problem. Without having more in-depth knowledge about how your site is configured I can’t offer insight about how to make changes or what impact they will have on the rest of the site. But, maybe this is enough to get started.