How to add link to Comment form? (2 posts)

  1. rahulsidd
    Posted 2 years ago #

    The comment form exists at the bottom of all the comments. Its very difficult to scroll down when there are lot of comments, for eg 400 or 500 comments. I still want it to be there but just want to add a link to the form from the top.

    I observed that manually appending #respond to the end of current post url takes me to the comment form but how do I write in in code?

    I'm absolutely no coder but I from WordPress function reference I found that <?php echo get_permalink(); ?> gets the current url.

    So I tried <a href="<?php echo get_permalink(); ?>"#respond>leave a comment</a> (please don't laugh if it doesn't make any sense?) but it didn't work.

    No clue how to do it.

  2. rahulsidd
    Posted 2 years ago #

    deleted duplicate code.

Topic Closed

This topic has been closed to new replies.

About this Topic