How to use blog categories, tags and related posts
In TeleportHQ, categories group your Blog posts or Help Center articles into topics and sub-topics, tags are keywords shown on each post, and related posts are articles you pick to show at the bottom of a post. You build categories in Manage Categories, and add tags and related posts in each post's panel. With Category Pages on (Settings → Listing), every category also gets its own page, such as /blog/category/baking or /help/category/orders.
Before you start
- Your project needs the Blog or the Help Center switched on. See How to add a blog to your site or How to add a help center to your site.
- Categories, tags and related posts work the same way in the Blog and in the Help Center. The Help Center calls posts articles, and starts with category pages switched on (see Good to know).
Create categories and sub-categories
- In the left sidebar (the icon column), click Blog, or Help Center.
In the row of category pills at the top of the panel, click Manage.
- In the Manage Categories panel, click Add category. A new row opens with its name ready to type.
- Type the category's name, for example
Baking, and press Enter. - To add a sub-category, click the + on the category's row (tooltip Add sub-category), type its name, for example
Sourdough, and press Enter. - Optional: click the image tile to give the category a picture, or Add a short description.
- To move a category, drag it by its handle onto another category to nest it, or between two rows to change its place. Drop it on Move to top level to un-nest it.
To rename a category, double-click its name. To delete one, click the bin on its row (tooltip Delete (undo to restore)).
Add categories, tags and related posts to a post
- In the Blog panel, click a post. The Edit Blog Post panel opens (Edit Help Center Article in the Help Center).
- Fill in the three fields:
- Categories: click Add category, then pick a category, or type a new name and choose Create "…". The first category is the post's main one.
- Tags: click Add tag, then pick a tag, or type a new one and choose Create "…" (or press Enter).
- Related Posts: click Add related posts. In the column that opens, search under Add a post and click a post to add it. Under Selected, use Move up, Move down or Remove.
- Click Save Changes.
A category you create inside a post is only kept when you save the post.
Give each category its own page
TeleportHQ can build one page per category, which lists the category's sub-categories and its published posts, and adds a categories overview to your blog's list page.
- At the top of the Blog panel, click the gear (tooltip Blog Settings). In the Help Center it's Help Center Settings.
- Under Listing, turn on Category Pages.
TeleportHQ then:
- adds a page in the
blogfolder (blog-category-details, orhelp-category-detailsin thehelp-centerfolder) that serves every category at/blog/category/<category>or/help/category/<category>; - in the Home page layout, adds an overview of your categories above the posts on the list page, headed Browse by category in the Blog and Browse by topic in the Help Center (the Sidebar layout lists them beside the posts instead);
- points the category chips on each post, the post's breadcrumbs and the category tabs to the category pages, instead of to the filtered list.
To style the category page, open it from the folder and pick a category with Select Category at the top of the canvas. Turning Category Pages off deletes that page, with any design changes you made on it, and takes the overview away.
The other Listing settings:
- Listing Page (click Listing Page Settings): how visitors pick a category on the list page. Under Filters, the Category filter row has four buttons: Off, Dropdown (a dropdown of your categories beside the search), Panel (your categories in a panel beside the posts, always open, with a search) and Tabs (a tab per category above the posts, with the one on show highlighted). In the Sidebar page layout, the categories list beside the posts does this instead. See How to design the blog list and post pages.
- Tag Pages: every tag on a post links to the list filtered by that tag (for example
/blog?tag=sourdough), and the list says "Posts tagged" followed by the tag. - Manual Order: one order you give your posts, by dragging them after you click Reorder in the Blog panel. The list page starts in that order, under Your order in its sort menu, and category pages and Previous and Next follow it too. See How to put posts or articles in your own order.
Check that it worked
- In the Blog panel, the pills show each top-level category with its number of posts. Click one to see its posts.
- On a post page, the post's categories appear as chips, its tags as a row of tags, and a Related Posts strip with article cards at the bottom.
- On your live site, new, renamed or deleted categories and a newly switched-on category page appear after you publish again. See How to publish a web app.
Troubleshooting
My new category doesn't show on my live site TeleportHQ saves the list of categories into your site when you publish. Publish again after you add, rename, move, delete or translate categories. Putting a post into an existing category shows on the live site without publishing.
"A category cannot be moved under itself or one of its sub-categories." You dropped a category onto one of its own sub-categories. Drop it onto another category, or on Move to top level.
A related post doesn't appear on the post page Only published posts are shown in Related Posts. The list marks the others with "Hidden on the page until this post is published." Publish that post, or pick another one.
The Category Pages switch is greyed out The panel says "Your blog has no listing page for the overview." The blog's list page was deleted. Rebuild it, see How to design the blog list and post pages.
Good to know
- Without Category Pages, visitors narrow the list on
/blogwith the Category filter of Listing Page Settings (a dropdown, a panel or tabs), or with the categories list of the Sidebar page layout. Choosing a parent category also shows the posts of its sub-categories, and the filtered list has its own link, such as/blog?categoryFilter=followed by the category's code. - Blog and Help Center differ in where they start: the Blog starts with Category Pages off and its overview reads Browse by category; the Help Center starts with them on, at
/help/category/…, and its overview reads Browse by topic. Each has its own categories: Blog categories never appear in the Help Center. - Deleting a category removes it from every post and moves its sub-categories up one level. Undo brings it back.
- When you delete a post, TeleportHQ also removes it from other posts' related posts.
- To move several posts to a category at once, see How to publish, move or delete several posts at once.
- On a site with several languages, category names are translated in Manage Categories, and tags in each post. See How to translate blog posts.