Search code examples
phpwordpresscommentsreplygenesis

'comment_popup_link()' with different #ID on Genesis Framework


I want to add a "comment" and "reply" links under every post on my Wordpress theme. Standard "comment_popup_link()" function creates such link:

http://website.com/page/#comments

What I want is to create another one, next to the above, looking like this:

http://website.com/page/#reply

How can I do that?

I'm trying to add it on Wordpress theme with Genesis Framework. There's a shortcode available - [post_comments] that does the same thing as 'comment_popup_link()'. The output of above shortcode/function is shown in first code example.

Thanks, Luca


Solution

  • A dirty and fast solution would be something like this:

    <a href="<?php the_permalink(); ?>#reply">
        <?php comments_number('No Comments', '1 Comment', '% Comments'); ?>
    </a>