WordPress.org

Ready to get started?Download WordPress

Forums

PHP URL's (2 posts)

  1. lxplicit
    Member
    Posted 9 years ago #

    I hope this makes sense

    Where do I place the coding so I can have URL's like... http://mysite.com/wordpress/index.php?action=links on WordPress

    here's an example: http://so-you.net

  2. Kafkaesqui

    Posted 9 years ago #

    You can test (and act upon) a GET query using something like:

    if(isset($_GET['action'])) {
    // Do something, like assign value to a variable
    $action = $_GET['action']
    // Then maybe display a message
    echo "Looking for some $action?";
    }

    The code can go just about anywhere -- inserted in your templates, written into a plugin, whatever. The question is, what do you want to do with them?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.