Add comment count to functions.php
-
Hi there,
I want the number of comments and link (#comments) to appear at the top of my post.
I am using the 2010 theme which has the following;
function twentyten_posted_in() { // Retrieves tag list of current post, separated by commas. $tag_list = get_the_tag_list( '', '/ ' ); if ( $tag_list ) { $posted_in = __( 'Category: %1$s <hr />Tags: %2$s<hr />', 'twentyten' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'Category: %1$s <hr />', 'twentyten' ); } else { $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); }
Where do I add the comment, and what code?
(The codex examples only show hooks for the Loop)
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Add comment count to functions.php’ is closed to new replies.