In the URL show parent page of the posts

[ad_1]

Hello!!

I have a question that’s probably very noob.

I use Elementor for a WordPress website. On this website I have a News page with news posts. I also have a couple of custom post types created with ACF. These custom post types have a similar structure, parent page with posts, nothing fancy.

When I visit a custom post type post, the URL correctly shows *site name/parent page/post name*. However, for the default (non-custom post type) posts, when I visit a regular post, the URL is *site name/post name.*

I checked the Permalinks settings but I don’t see how I could change it to what I want. I tried manually adding the parent pagename in front %postname%/ (/news/%postname%/) in the Custom Structure, but as expected ‘news’ will then also be added on other place.

I understand I probably have to tell WordPress that News is the parent page of Posts, but I don’t see how.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer