Forum

Thread tagged as: Question

Perch Blog - only show posts, not comments

For the code


<?php perch_blog_recent_posts(10); ?>

is there any way to stop the comment total from being shown?

Garth Holmes

Garth Holmes 1 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Yes, just edit the templates to show whatever you want.

https://docs.grabaperch.com/addons/blog/template-tags/

Thanks.

It was the "post_in_list.html" template, of which I copied from:

/perch/addons/apps/perch_blog/templates/blog/

to

/perch/templates/blog/

and I removed the following code:


<div class="description entry-summary"> <perch:blog id="excerpt" type="textarea" textile="true" /> <p>Comments: <perch:blog id="postCommentCount"/></p> </div>

which made the comment count disappear.

Thanks again for writing back