You shouldn’t need to do any of that.
When you set up a category in the backend of a WordPress website, the archive is normally created/taken care of for you. So if you create a category called ‘Massive Dogs’ and you got to “/massive-dogs’ after you have created a post in that category (and the slug is the same), you should see your post item.
The URL would only reflect that if you had parent/child categories.
http://www.wpbeginner.com/beginners-guide/how-to-add-categories-and-subcategories-to-wordpress/
Anything beyond that would likely need you to create some custom functionality in the function file and/or create some custom templates.
It would be interesting to know why you would need that kind of URL structure. Surely anything in 'topic1/news'
would just be news?
I hope this helps but if not, comment and I’ll be happy to help further 🙂
Related Posts:
- How to get permalinks with category base working with sub-categories
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Multiple post categories – single permalink
- How to create a custom url for a category [closed]
- How to create non-unique sub-category slugs?
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- Exclude subcategories from the url
- WooCommerce change category url and product base
- New categories are now going to 404s
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- How to get category URL with the slug?
- Add “page-a” slug to category link if user visit category link from “page-a”
- Remove subcategory and category with some rules from permalink
- Hierarchical permalink structure for posts showing categories and sub-categories
- What Must to Display the “mysite.com/category” URL?
- A different permalink structure for different categories
- How to remove category name for only one category?
- How to set the same base url for two different taxonomies?
- Category URL’s 404 after setting category base to ‘.’
- Accessible Subcategory URL’s pages without using .php hack
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Is There a Difference Between Taxonomies and Categories?
- How to change permalink structure for custom post type and it’s taxonomies?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Remove parent category from permalink? Basically only have the child category?
- Custom permalink structure leads to be 404 on pagination
- Posts URL structure like site.com/category/the-post-title
- How to remove the term “category” from category pagination?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Category archive by year with permalink support /category/YYYY
- get_categories for custom post type with a specific custom taxonomy attached
- Add a URL prefix to permalinks of one category of posts only
- Control term order on a per-post basis
- Could not insert term into the database
- How can I add the featured image functionality to a custom taxonomy?
- Filtering categories in the permalink structure
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- Allow duplicate permalink slugs for posts in different categories
- Force WordPress to Show Pages Instead of Category
- Can a Child Category Have More than One Parent?
- Combine two taxonomies in a hierarchical tree
- How do I use the same post slug for different Categories?
- What’s the URL for a category archive?
- Weird behaviour when adding terms/term_taxonomies programmatically
- Rewrite rule page url with category
- How to remove category from wordpress url?
- Add forward slash on categories url (serve one version of a url)
- How can I select a primary category?
- wp_update_nav_menu_item() to insert categories
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Using URL parameters, list posts from category and custom taxonomy
- How to get the url to tag & category base set by the user?
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to make custom taxonomy check boxes like ‘Categories’
- Create terms when registering taxonomy?
- 404 error on subcategory pages
- Rewrite category wordpress
- Categories’ hierarchy in URL
- Changing the category permalink structure
- How to get next previous category in same taxonomy?
- Display only deepest category on a single post?
- Category links suddenly started giving 404 errors
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- How to display only the parent category in the permalink
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- Root level category, tag, author and archive pages to work
- How to Override default update_count_callback for category
- Wrap a chosen category name with div
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Page with the same name of a category
- Archive pagination causing 404 with permalinks structure
- Permalinks – Different structures for different categories?
- Plural Category Base Slug On Category Archive Page
- custom permalinks for category archive ( custom base and no parent slug )
- wp_list_categories, Add class to all list items with children
- Getting WordPress custom taxonomy/category?
- Display empty taxonomy terms with get_terms()
- Return category slug / title from category ID
- Connecting WordPress gallery to custom categories (taxonomy)
- How to get the number of child categories a specific parent category has?
- Removing category base form links messes up the parent-child behavior
- Get term by slug in Gutenberg
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- Update taxonomy value of post type in query
- How to query posts from specific authors and categories using WP_query?
- How to get the depth of a category’s subcategories
- How can I convert some categories to a custom taxonomy?
- Any way to assign Post Categories and Tags to Links?
- Get a permalink structure of /%posttype%/%category%/%postname%
- Duplicate Category and Page URL loads Category instead of the Page
- Add custom taxonomy under the category title
- Display name of the last child category
- Default category link for a custom category is a broken link
- Get multidimensional array that reflects category hierarchy
- Want to hide some categories from the categories meta box in the post editor for the two specific user roles