WordPress.org

Ready to get started?Download WordPress

Forums

WP_Rewrite question (1 post)

  1. fraticiudan
    Member
    Posted 3 years ago #

    Hello,

    I am working on a project that is basicaly a WordPress theme and I need to send some GET values to the post template, right now I do it like this:

    mysite.com/hello-world?value=my-value
    or
    mysite.com/?p=1&value=my-value

    But the client really wants this kind of URL rewrite

    `mysite.com/hello-world/my-value/

    I looked at WP_Rewrite, but I just cant get my head around it and I haven't found a tutorial or any other documentation. Can someone please point me in the right direction?

Topic Closed

This topic has been closed to new replies.

About this Topic