Get Comment Link in Post Info
-
Hello,
I posted this about 3 weeks ago in the Origami theme forum but I don’t think there is much traffic there so I’ll ask here.I’d like to be able to make the “comments” in the description below the post title a clickable link, linking to the comment thread of that post. Most other themes I’ve used in the past had this but Origami doesn’t.
On my blog’s main/front page, below the post title there is that bit of info that goes something along the lines of the “the date, the author, number of comments and categories.” Currently, only the author and the categories are clickable links. I’m hoping to have “x comments” be clickable, directing to the comment thread of the post.
I’m guessing this the spot in the loop.php that needs to be edited but I’m not exactly sure how to do that.
<div class="post-info"> <?php printf(__('On %s', 'origami'), get_the_date()) ?> <?php if(siteorigin_setting('display_post_author')) printf(__('by %s', 'origami'), '<a href="'.get_author_posts_url(get_the_author_meta('ID')).'">'.get_the_author_meta('display_name').'</a>'); ?> <?php if(siteorigin_setting('display_comment_counts') && siteorigin_setting('display_post_author')) _e('With', 'origami') ?> <?php if(siteorigin_setting('display_comment_counts')) printf(__('<strong>%u</strong> Comments', 'origami'), $post->comment_count); ?> <?php if(has_category()) : ?> - <?php the_category(', ') ?> <?php endif; ?> </div>
I’m over at https://lieslmade.com
Thanks in advance!
- The topic ‘Get Comment Link in Post Info’ is closed to new replies.