WordPress slug add sub-category in post URL

1 views
0

I want to create a new URL format for the post, but I dont want to include category in the Post URL instead I want to include sub-category as show below.
eg:
www.domain.com/sub-category-name/post-name/