badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: Put the number of comments in the preview

#68479
Alberto
Participant

I put this code in the file you told me, line 147, you can see here https://albertifoto.altervista.org
I would have liked to add the link to the comments, but I failed.
I tried the code in the child functions.php but it doesn’t work.

<div class="commenti-anteprime">
   <?php
   if (1 == get_comments_number()) {
   printf(__('One thought on &ldquo;%2$s&rdquo;', 'wp-portfolio') , number_format_i18n(get_comments_number()) , '<span>' . get_the_title() . '</span>');
   }
   else {
   printf(__('%1$s thoughts on &ldquo;%2$s&rdquo;', 'wp-portfolio') , number_format_i18n(get_comments_number()) , '<span>' . get_the_title() . '</span>');
   }
   ?>
 </div>