Basker Docs

Categories and tags

Group and filter posts using categories and tags

Categories and tags are two ways to organize posts. They serve different purposes and most blogs use both.

  • A category is a primary grouping. Categories are typically a small, deliberate set, such as "Reviews", "Interviews", or "Program Notes". A post can belong to one or more categories.
  • A tag is a freer label. Tags are usually a larger, looser set, and a post can have any number.

Both have their own pages on the live site. Visitors can browse "every post in the Reviews category" or "every post tagged with Behind the Scenes".

Categories

A category has:

  • A title: the category's display name.
  • An optional image.

Categories are scoped to a blog. A "Reviews" category in your news blog and a "Reviews" category in your program-notes blog are separate categories. This means each blog can have its own category structure without conflict.

Set a post's categories when you create or edit it.

Tags

A tag has:

  • A title: the tag's display name.

Tags are scoped to a blog. A "World Premiere" tag in your news blog and a "World Premiere" tag in your program-notes blog are separate tags. If you run several blogs and want a shared vocabulary, set up the tag once per blog.

Set a post's tags when you create or edit it. Adding a new tag creates it automatically. You do not need to set tags up in advance.

When to use which

  • Use categories for a small, well-defined editorial structure, such as "News", "Reviews", or "Interviews".
  • Use tags for an open-ended thematic vocabulary, such as "World Premiere", "Behind the Scenes", or a composer's name.
  • Use both when a post belongs in one or more categories and also needs several tags.

Every category and tag has a fixed, shareable address. You can link to it from anywhere, such as a newsletter, a social post, or elsewhere on your site. Because the pages are scoped to a blog, the address always includes the blog:

  • Category page: /blogs/<blog>/categories/<category>, for example /blogs/news/categories/reviews.
  • Tag page: /blogs/<blog>/tags/<tag>, for example /blogs/news/tags/world-premiere. You can combine tags with a + to require all of them, for example /blogs/news/tags/interview+behind-the-scenes.

To make these pages easy to find, ask whoever maintains your theme to add links to them. For example, list categories in the blog sidebar, or link each post's tags to their archive pages. The template references below show how to build those links.

Category and tag archive pages come from your theme. On a no-code theme, use the filter controls on a blog listing to let visitors browse by category or tag instead.

The category filter on some blog pages narrows the posts shown in the visitor's browser. It does not change the page address. You cannot copy the address bar to share a filtered view. To share a link, use the category or tag page addresses above. These addresses are shareable and bookmarkable.

Where to go next

On this page