WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can I have url parameter? (3 posts)

  1. shazdeh
    Member
    Posted 4 years ago #

    So the idea is to have parameters in url and access them in theme's function.php or in a plugin. Something like: site.com/category/post/params
    Is that possible?

  2. tugbucket
    Member
    Posted 4 years ago #

    site.com/category/post/?var=whatever

    <?php
    $var = $_GET[var];
    if($var == whatever){
    //do something
    }
    ?>
  3. shazdeh
    Member
    Posted 4 years ago #

    It's damn easy that I didn't believe it first! Thanks man!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.