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?
- 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
- Filtering categories in the permalink structure
- wp_update_nav_menu_item() to insert categories
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to make custom taxonomy check boxes like ‘Categories’
- 404 error on subcategory pages
- Categories’ hierarchy in URL
- 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]
- Wrap a chosen category name with div
- custom permalinks for category archive ( custom base and no parent slug )
- How to query posts from specific authors and categories using WP_query?
- Duplicate Category and Page URL loads Category instead of the Page
- Add custom taxonomy under the category title
- List Terms in Category
- WordPress subcategories return 404 in custom template
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Display Slug instead of Name
- How get permalink for the current category or tag?
- ACF: Display category name using taxonomy field
- Taxonomy name repeating when showing 2 posts from each category
- New Categories Not Shown In the Post Edit Page
- Shortcodes not working in category or tag description
- Filtering multiple categories via the URL
- Display specific categories by ID
- Mod_Rewrite to show only last subcategory in URL
- Display Posts Loop for each parent and for each Child
- How to rewrite the post URL according to the category?
- Flat category URLs but retaining hierarchy?
- A single category with a specific permalink structure differing from the standard set for the rest of the site
- category url structure
- menu using category and tags
- Custom taxonomy template for categories
- Hide the word ‘category’ from my permalinks
- Question on using custom structures for categories
- Use the category name instead of category slug in permalinks
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- Function to automatically rename the base category permalink
- List just subcategory and products of active category page in Woocommerce
- category link not working for a specific slug, works for others
- Setting selected term_id with wp_dropdown_categories?
- creating categories programmatically
- prefix to post permalinks without affecting category permas
- Category URL Management
- Need help with major category and permalink re-organization
- WordPress Primary Category Changes After Import, Permalink Issue
- How to use category slug with a regular page
- Category post count is not correct
- Using custom structure prefix showing 404 for sub-categories
- How to add tags under categories
- How can i change sort category view starting from child then parent, not alphabetically
- Can a Woocommerce product category URL contain “&”?
- Does having category name in permalinks affect SEO when having a post in multiple categories?
- Bulk assign posts to a category using SQL (MySQL)
- outputting taxonomy hierarchy
- Remove “category” from permalink with add_rewrite_rule
- Change Category Base For Custom Post Type or Posts Page
- Filter custom taxonomy posts via AJAX
- Why use hierarchical taxonomies instead of many custom taxonomies?
- How get all media from a posts category by db?
- same permalink for parent category and child category
- Create monthly archive for parent category
- Grouping parent categories into sections
- Match two taxonomies to display a specific content
- Change category base based on category
- Modify / Rewrite single template url structure
- Most efficient use of custom taxonomies, categories, and pages
- Removing short versions of category archive URL
- Return selected categories only in custom page meta box?
- how wordpress generates permalinks as /%category%/%post%/
- Woocommerce custom taxonomy order
- Hook action when create new category [duplicate]
- WordPress how to remove parent slug from category URLs