• Hey everyone,

    I’m working on a site and keep running into a problem.

    I’m trying to code a ‘comment’ button that appears on both the listing and single post pages, that sends the user to the comments section of the post.

    Right now I’m using ‘#respond’ in my link, but it only works when you click the button on the page itself, because it’s a relative url.

    Any suggestions? Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter streetlight708

    (@streetlight708)

    Or, another way to put it — is there a way to write a url that would work like ‘/%post-name%/#respond’?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Give this get_comments_link() article a quick read.

    As long as your using the loop to get the list of posts, this should provide you the link to that post’s comment section.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Relative Urls for comments’ is closed to new replies.