WordPress.org

Ready to get started?Download WordPress

Forums

Adding custom permalinks and using them on the page (1 post)

  1. f00bar
    Member
    Posted 5 years ago #

    Hi everyone,

    I'm working on a site using WordPress and my permalinks are set up as follows:

    /%category%/%postname%/

    which is exactly what I want. However, for a particular page link I want to be able to add on another level in order to use this value on the next page - exactly like a query string.

    i.e. Permalink on page 1:

    http://www.mysite.com/category/postname/MYCUSTOMTEXT/

    Then on page 2 it will have a line that reads:

    This is the MYCUSTOMTEXT page!

    Essentially in PHP you'd use a $_GET to be able to grab the value of a query string but I want it to look "pretty". Is there a hack-less way of doing this? That is to say, is there a function built-in to WordPress which can execute what I want to do, or is there a plugin that can do this?

    Any help is much appreciated! Thank you!

    Michael

Topic Closed

This topic has been closed to new replies.

About this Topic