• Hello everyone!

    I’m trying to pass one parameter through a url that links to a custom page.

    That parameter sets a custom database query and populates the custom page template with the request information via URL.

    The custom page URL is:
    mywebsite.com/tournaments

    ATM I can pass the parameters through the URL this way:
    mywebsite.com/tournaments?name=value1

    I pick value1 through $_GET[‘value1’] and query my database with this information.

    What I want to do:
    mywebsite.com/tournaments/value1

    How can I use this kind of url without WordPress rejecting it and outputing a 404 page?

    Also, it’s possible to use the mywebsite.com/tournaments in a different page template, listing all entries registered into the database, while mywebsite.com/tournaments/value1 uses a different template?

    Thanks a lot!

  • The topic ‘Passing URL parameters to a custom page’ is closed to new replies.