WordPress.org

Support

Support » Miscellaneous » passing GET data in permalink URL.

passing GET data in permalink URL.

  • psenthilraja

    @psenthilraja

    Hi,

    I have a requirement, where i need to give an option of displaying comments either in ascending or descending order.

    I edited comments.php and displayed a URL “Reverse Comment” as below.
    ?display=reverse”>Reverse Comment

    I tried passing the info through the GET variable, but, that doesnt seem to work. The get variable is not received in the page.

    Any help on this would be appreciated.

Viewing 1 replies (of 1 total)
  • Adam Brown

    @adamrbrown

    Remember to use backticks around code or it doesn’t paste right.

    Just in case this is it, remember that you access the var like this:

    $_GET['display']

    not like this:

    $display

Viewing 1 replies (of 1 total)
  • The topic ‘passing GET data in permalink URL.’ is closed to new replies.
Skip to toolbar