Hi Greg,
Thanks for the reply,
I tried your GitHub code but I can’t get URL like I want.
I am trying to get URL like this “example.com/classified-ads/ad-category/ad-sub-category/sample-ad” Where
“classified-ads” is advert(custom post type) slug,
“ad-category” is parent advert category,
“ad-sub-category” is sub advert category,
“sample-ad” is advert’s single post
Thanks