Category
Categories are used to group blog content. Think of categories like “bookshelf” for news and articles.
How to Access
- Entered into Admin Dashboard
- Open menu Admin → Blog → Categories
Category Page Elements
Toolbar above the table:
- "Add New" button: Creates a new category
- "Search" box: Filter categories by name
- Action Dropdown: Bulk actions for selected categories
- Column Dropdown: Set which columns are displayed
- Number of rows dropdown: Set how much data per page
Table column:
- Name - User visible name of the category
- Slug - A neat version of the URL (example:
pengumuman) - Description - A brief description of the category
- Action - Edit/Delete button
Important Concept: Name vs Slug
- Name: User visible text (example: "Announcement")
- Slug: The neat version of the URL without spaces (example: "announcement")
warning
Avoid changing the slug of categories that are already used by many articles, because changing the slug can affect links that are already spread or indexed in search engines.
Create a New Category
- Click the Add New button
- Fill out the form:
- Name: The name of the category you want to create
- Slug: URL slug (usually automatically from the name)
- Description: A brief description of the category (optional)
- Click Save
Changing Category
- Find the category you want to change
- Click the Edit button on the category row
- Change the name/description as needed
- Click Save
Deleting Categories
- Find the category you want to delete
- Click the Delete button on the category row
- Confirm deletion
info
If the category is still used by the article, consider changing the article to another category before deleting the category.
Tips
- Create categories that are clear and easy to understand
- Avoid creating too many categories
- Use consistent category names
- Maintain standard category slugs