• Resolved wkdwlstj

    (@wkdwlstj)


    first of all, Thanks for ur kind support!

    I am trying to add the number of comments on my posts into the title of the post in archive list.

    However
    I tried and failed ??
    I don’t know what file i have to modified.

    The code i am trying to add is
    <h2 class=”comments count”>
    <?php
    printf( number_format_i18n( get_comments_number() ));
    ?>
    </h2>

    I added that into content.php, successfully it;s shown. but archive list…nope..

    Pleas help. What file do i have to modify?

Viewing 1 replies (of 1 total)
  • Theme Author Hardeep Asrani

    (@hardeepasrani)

    Hey,

    All the content files have two part in it. The first renders it in a singular view (like a post or page) and the second part is for archive pages.

    Try adding it to the part after <?php } else { ?>

    Let me know if that works. ??

    Regards,
    Hardeep

Viewing 1 replies (of 1 total)
  • The topic ‘Adding some code into archive list’ is closed to new replies.