WordPress.org

Forums

Change ?page_id=# to ?page=NAMEHERE (9 posts)

  1. XeroCool
    Member
    Posted 10 years ago #

    How would I be able to change WP 1.5 changes from ?page_id=# to ?page=NAMEOFTHEPAGEHERE. Is that possible? Or is it possible to change it to ?page=# instead/

  2. XeroCool
    Member
    Posted 10 years ago #

    Bump..

  3. parisgv
    Member
    Posted 10 years ago #

    When you create a new "about" page, your database assigns it an address something like this: example: ...../index.php?page_id=7 - This is the address to your virtual "About" page and you can link to that "About" page by using this address.

    You can change the way the address looks in your browser location bar from this:

    ...../index.php?page_id=7

    to this:

    ...../about

    by going into your admin panel and under "options" select "permalinks" and enter the display information in the "structure box"
    I use this structure:

    /archives/%year%/%monthnum%/%day%/%postname%/

    and then press the "update permalink structure" button.

  4. XeroCool
    Member
    Posted 10 years ago #

    For category base, I put in /category/ so how would I make all the categories work in /category/?

  5. Dazza
    Member
    Posted 9 years ago #

    Major bump :)

    Im interested in how you could change page_id to something else (like just page), as well as changing the parameter for it from the ID to perhaps the page's slug.

    Theres a site (not using wordpress) that does something like this: http://www.teamice.org/

    Any ideas?

  6. moshu
    Member
    Posted 9 years ago #

    Before "major bumping" a more than a year old(!) post it is always a wise idea to read in the Codex: Using_Permalinks

  7. Dazza
    Member
    Posted 9 years ago #

    sorry, I re-read my post and it doesnt seem particularly clear :P
    I had read the permalinks codex entry before, but it deals with hiding the underlying parameter query. I dont want to hide it at all - I simply want to change the parameters' name and accepted values.

    For example: the default structure is http://www.example.com/?p=423 for posts, and for Pages, it's http://www.example.com/?page_id=26

    I want to change this so for example post links are http://www.example.com/?news=423, and pages come up as http://www.example.com/?page=about (the parameter being changed from their post ID to their post slug).

    I hope that's slightly clearer :)

  8. Dazza
    Member
    Posted 9 years ago #

    just a quick extra - I realise for pages and the like I could indeed have a permalink structure that would change the http://www.example.com/?page_id=26 to http://www.example.com/about/. However, for the way I am using pages, there is an unfortunate overlap in that permalink structure and subdirectories on the site.
    Further, while it would be possible to construct a permalink structure to avoid this conflict, I would really much rather change the parameters for the query.

  9. Simply put, it probably wouldn't be easy. You're better off changing your permalink structure.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.