Access page in subfolder URL

Question

Is it possible in WordPress to have a custom subfolder URL for a specific page?

For example:

I want to create a page called pizza and make it accesible from https://website.com/food/pizza

I know that a page is actually a custom post type (of type page) and it can be accessed via it’s slug (post_name field in the DB). But changing the slug to food/pizza is not working.

I could create a CPT that “lives” under the food folder. But I don’t like it as a solution.

0
Alvaro Franz 2 years 2021-04-25T17:11:38-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse