• i’m seeing some weird behavior, although i suspect it is “expected” behavior. here’s the situation:

    i had a page, whose permalink was (eg) “credit-cards”. i had defined a number of pages that were “beneath” that one, defined as sub-pages with that one as the parent. hence, the permalinks were like so:
    credit-cards/page-1, credit-cards/page-2, etc.

    i subsequently needed to create a category, with the permalink “credit-cards”. i changed the permalink on the old page to “credit-cards-old”, just to be sure there was no ambiquity.

    so, now i have a category (url = “/credit-cards”) with posts in it. all of the previously created sub-pages are still live, and i can link to them successfully using “/credit-cards/page-1” etc.

    here’s the problem: when that page (/credit-cards/page-1) comes up, the browser address bar contains its url/address as:

    /credit-cards-old/page-1

    this is bad. i want it to contain the correct permalink/url, which should be /credit-cards/page-1. i have tried hacking the database to remove the parent/child relationship between the old page and the its former sub-pages (changing “post_parent” in wp_posts), but that just results in a wordpress “not found” error.

    anybody have any ideas how i can remedy this situation?

    thanks so much in advance.

    -laz

Viewing 3 replies - 1 through 3 (of 3 total)
  • Edit each of the posts and amend their permalink (directly beneath the post’s title input).

    Thread Starter laz0rama

    (@laz0rama)

    i would have long since done that already, but it only allows you to change the last segment of the permalink. ie, below the page title, it displays “https://www.monitorbankrates.com/credit-cards-old/page-1”, but when i click “edit”, “https://www.monitorbankrates.com/credit-cards-old/” remains uneditable, and only “page-1” is editable in the text field.

    any other ideas greatly appreciated.

    Thread Starter laz0rama

    (@laz0rama)

    btw, i just saw something else disturbing. i am using 2.7, and in the admin tool for creating a new page, i no longer see the option to make it a subpage of an existing page.

    as this seems somehow potentially related to another issue since upgrading to 2.7 (i no longer have an option to select a page template – and yes i have tried everything already mentioned here on the forums), i am wondering what has happened to the “create page” tool.

    UPDATE: ok, i am blind and/or stupid (and surely impatient). while continually perusing the admin tool, i have found one major thing i was missing (wish someone would have mentioned it, especially in the other thread re selecting a page template). at the very top of the “add new page” page in the admin tool is a collapsed (by default, for me anyway) section labeled “show on screen”. if you expand that, you have checkboxes for several options which appear to be hidden by default, including “attributes”. select “attributes” there, and a new section (attributes) of the tool is displayed on the right side, and it contains dropdowns for both the page parent, and the page template, among possibly others.

    so, while i still think there is problem with the permalink logic, at least i can assign a new page parent.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘problem with permalinks’ is closed to new replies.