WordPress.org

Ready to get started?Download WordPress

Forums

passing GET data in permalink URL. (2 posts)

  1. psenthilraja
    Member
    Posted 6 years ago #

    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.

  2. Adam Brown
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic