Tag Info

Hot answers tagged

3

Yes, it is possible, but it is a bit of a pain. Looking at the codex page, only arguments of note are number and offset. We need these two to create our paginated pages. First, we set the $paged parameter, which is the current page: $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; Then number of comments to display: $number = 3; ...


1

Generally comments are being displayed using comments.php, the template is rendered using a function called comments_template();. If- there is a comment template in your theme and it contains a function called comment_form(), and the comment template is being displayed below the post (in single.php, page.php etc.), and your comment settings from the Admin ...


1

You could instead try the following replacement: /** * Add itemprop attribute to the comment reply link */ add_filter('comment_reply_link', function( $html ) { if( false === stripos( $html, 'itemprop="' ) ) $html = str_ireplace( '<a ', '<a itemprop="replyToUrl" ', $html ); return $html; }, 99 ); through the comment_reply_link ...


1

Try editing category.php – or category-news.php if you have it – your CSS seems to indicate you've created a "news" category, but you'll hopefully know which files you've edited - and adding: $withcomments = 1; // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) { ...



Only top voted, non community-wiki answers of a minimum length are eligible