WordPress.org

Support

Support » Reviews » Facebook Comments » Is there some php code so that I can directly link the comments section?

Is there some php code so that I can directly link the comments section?

  • Really great app! I would like to be able to put some php code in my main page template so that a user can click on a link and be sent directly down to the comments section of the post.

    Is this possible?

Viewing 1 replies (of 1 total)
  • You probably figured it out by now but you can achieve what your looking for with good ol’ html. And an <a> tag at the top of the page where the href=”” and id name thats at the bottom, just above the comments. Like this:

    top of page: </a><a href="#comments">Go to comments</a>

    ……

    bottom of page: <div id="comments">....... </div>

    [Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]

Viewing 1 replies (of 1 total)
  • The topic ‘Is there some php code so that I can directly link the comments section?’ is closed to new replies.
Skip to toolbar