• Hello. I have a php script (I found it on the net sometime ago) embedded into a wordpress page (using a php plugin) that displays the list of posts and the date. The code is: The php code is this one: http://pastebin.com/1V554VGQ

    And it looks like this: http://dl.dropbox.com/u/1910765/page.jpg

    I’ve added the word Comments on the table but it doesn’t have a link, that’s exactly what I want, to add a Link to the comments that links to the comments of the post. Is it possible? Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try this:
    <a class="fancybox iframe" href="'.get_permalink($post->ID).'#comments">Comments</a>

    Also, the /a tag should be before the /th tag on line 20 after the post title.

    Thread Starter amatsu

    (@amatsu)

    That doesn’t work in my case, I have a modified single.php without the comments section. So it opens the same link as the “Letter” link.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add comments link to custom PHP page.’ is closed to new replies.