set the permalink as
/%category%/%postname%/
When you set a category parent of child, the permalink will be
../category/child-category/postitle
I tried and worked fine!
Regards
Related Posts:
- Stop WordPress appending `-2` to the end of my url after i change it
- WordPress Permalinks not working in Apache2 Ubuntu 14.04
- Removing Parent Page(s) from Permalink
- Removing the redirect after changing a page’s slug
- How to display a public profile page for registered users with custom slug?
- Page begins with number, WordPress adds 2
- Why don’t WordPress post slugs allow accents?
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Modify get_permalink with a specific filter
- Include Taxonomy slug in post url
- Nice RSS Feed URLs for each custom post type
- How to set permalink to fetch all children custom posts with parent post in wordpress?
- Rewrite url / permalink for default archive – yearly / monthly
- Should I use relative or absolute urls when pointing to internal pages
- removed index.php now all pages 404
- permalinks has -2 with post name structure. why?
- How can I change permalinks to use a different domain and path from where the blog is hosted?
- Gutenberg Editor: dynamicaly change slug field with an ACF field
- Permalinks all messed up, I am helpless [closed]
- Change permalink for a single post entry
- Apostrophe in permalink results in page not found
- WP Site in subdirectory Joomla! Site – Permalinks not working
- How to get full content including template HTML
- WordPress on Ubuntu 12.10: permalinks problem
- Is the ‘/category/post-name-date/’ permalink structure okay?
- wordpress api using rest_route for other pages
- Infinite redirects after changing the permalink of a page
- Permalinks settings page blank
- how to add two same slug under two category?
- How to have extra permalink for posts
- Trouble with numeric permalinks after 4.3.1
- Editing Pages Give 404 Error After WordPress Upgrade in Admin Panel
- How to get post object on blog template
- Illegal characters in URLs
- conditional statement for active permalinks
- WordPress auto generates small medium and large of an image on upload, how can we guess their links?
- Error updating pages, and linking to pages (permalink error)
- Plain to postname permalinks not working
- Permalinks dropping after 3-4 weeks with no changes in theme or plugins
- WordPress Sub domain
- How can i have a custom post type with more slugs for each post?
- Create a PHP page to refresh the permalink on a custom table
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- Custom permalink for specific category
- Permalink structure between 2 custom post types and a taxonomy
- how to redirect old blog post urls when permalinks are changed
- How to use all tags in post permalinks
- Disable date based archives for all categories except one
- Permalink target for recent post
- How do I reclaim either deleted pages or their permalinks?
- url rewrite .htaccess extension to permalink
- Remove parent page from url
- Remove “attachment/” from the URL of attachment pages
- How do I change the permalink structure without getting 404s?
- 404 on internal pages, in all sites in my local server
- how to alter permalink in wordpress?
- Adding User Info to Permalink of User pages – is it neccessary?
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Permalink will not change – it wants to have -2 slug [duplicate]
- Permalinks 404 after Subdirectory to Root Migration
- optional parameter in permalink structure
- Get a link to paged() part?
- Custom permalink structure only saves with index.php inserted
- Two custom taxonomies in permalink structure
- Blogger To WordPress Permalink Redirection
- get_permalink() gives a certain page link only. how to solve this.?
- What is the simplest way to create a redirect
- How to make different urls for some tags pages
- Adding custom query var to a single post without redirecting to its root slug
- How to change specific permalink in wordpress site?
- assets aren’t loading on a page but loads on others? slug permalink conflict?
- remove SLASH on single_post but KEEP on categories and parent pages
- Fire a code when permalinks updated
- Change Project permalink to custom URL
- Flush rewrite rules with scheduled event (cron)
- Got 404 error when changed siteurl via DB in WordPress
- I have a 404 error on all my pages! What do I do?
- All files in public_html, Cannot launch WordPress site via wp-admin
- Extra url paths as variable
- Permalinks don’t update nor link properly
- Prevent 301 when a trailing slash added
- Why I had to re-save permalink setting after moving my WordPress site to another hosting provider?
- Do shortcodes in title before permalink is generated
- Permalinks custom base to redirect to archive.php
- How to change URL of my pages?
- get_permalink to an anchor
- Pretty permalinks returning “not found” on localhost and server
- Removing or hiding slug/permalink from htaccess
- WordPress Permalink Problem
- Converting WP Page to use full explicit paths?
- Add Custom Pagination Permalink
- Update permalinks
- Losing the original URL when using add_rewrite_rule
- Permalink issues with Ubuntu Server – Infinite loop & Wrong pages
- How can i edit all posts slug in bulk keeping WP native redirect?
- Post/page without slug
- WordPress keep redirecting me to random URLs
- How to make a permalink variable %year% become two digits instead of four digits?
- Standard Htaccess directives disappear by themselves
- My permalinks no longer have the “news” category prefix in the link and it’s causing 404 errors for articles published on the web