Create an url for category that mimics the page that links to them

NEW to this kind of customization on WORDPRESS

Here’s my problem:

I created a blog page that has some posts. The posts have a certain category, here’s my example:

https://my-website/our-difference/our-grads/

https://my-website/success-stories/student-1/

Now, I created a custom loop to do that, my goal would be to create a link that will mimic the custom blog page like in this way:

https://my-website/our-difference/our-grads/student-1/.

I can change the main permalink or I can change the category of each post, but I was looking for a more elegant solution with PHP, plus if I change the permalink structure, I have to change the main blog page, and I can’t do that.

Any suggestion?

Read more here:: Create an url for category that mimics the page that links to them

Leave a Reply

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