Viewing 2 replies - 1 through 2 (of 2 total)
  • Every WordPress page can only have one parent page and one permalink URL.

    Here, it sounds like you want to make https://chamberlink.co.za/ohs-act-training/ a sub page of https://chamberlink.co.za/online-courses.

    If you do do that, all sub pages of ohs-act-training will automatically begin showing up at https://chamberlink.co.za/online-courses/ohs-act-training/sub-page-name.

    You could potentially get around this by creating duplicate copies of pages with different parent pages, but this will be messy and is usually not recommended from a SEO perspective, as search engines can penalise sites for duplicate content.

    Moderator bcworkz

    (@bcworkz)

    As Mahangu said, you cannot have multiple parent pages. However, it is possible to conditionally change a page’s “permalink” through the “page_link” filter. Any page links that WP outputs will be whatever the filter callback returns. Thus “permalinks” will no longer be permanent when this is done, but it’s only semantics.

    If you alter page links that way, you must also add a custom rewrite rule so WP can recognize the URL and know what to do with it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.