[resolved] Add Comments Number with anchor to P2 Theme (2 posts)

  1. sudomagodo
    Posted 5 years ago #

    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.]

  2. sudomagodo
    Posted 5 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic