WordPress.org

Support

Support » Themes and Templates » [Resolved] Add Comments Number with anchor to P2 Theme

[Resolved] Add Comments Number with anchor to P2 Theme

  • Hi,
    I’ve add this code to my entry.php:
    <?php comments_popup_link('0 &#187', '1 &#187', '% &#187'); ?>

    The code works great and when I click over the comments numbers the website show me the relative Article’s page. Now I’m looking for anchor (or linking) the Article page directly to the commentslist.

    Everybody know a possible solution? Thanks.

    [Please post code snippets between backticks or use the code button.]

Viewing 1 replies (of 1 total)
  • Ok I resolved again by myself.

    php code for comment number entry.php: <a href="<?php the_permalink() ?>#ancora"><?php comments_number('0','1','%')?></a>
    anchor point in comments.php : <a name="ancora"></a>

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Add Comments Number with anchor to P2 Theme’ is closed to new replies.