WordPress post archive permalink modification, how to add previous page to single.php url

The current url that links to my post loop is home/sub-page/posts, but when you click a single post’s permalink, it takes you to home/posts/single.php.

How can I make it so that the sub-page is still included in the url when you visit the single.php permalink?

I’d like the permalink to look like this – home/sub-page/posts/single.php

Read more here:: WordPress post archive permalink modification, how to add previous page to single.php url

Leave a Reply

Your email address will not be published. Required fields are marked *