Tag Info

New answers tagged

0

Thanks for raising this issue, it interests me as well. After searching everywhere for an acceptable solution, this is how I approach the problem on my site, at least for now: comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => '25' ))) If you change '25' to, say, '1000', this will give you pretty much 'infinite replies', ...


1

Use the proper charset in you website according with the characters you use, that is the correct solution from my point of view. What your are trying is some work around that don't fix the real issue. You must note that UTF-8 is the standard enconding recommend for internet nowdays. ISO-8859-1 was considered the standard for 4.01, although most of the ...


1

You can use these inside the loop, or in comments.php //The author of current post $author_ID = get_the_author_meta("ID"); //The current post ID $p_ID = get_the_ID(); //Number of guest comments echo count(get_comments(array( 'post_id' => $p_ID, 'author__not_in' => array($author_ID) ))); More: ...


0

ahaaa :D it's success, I use CSS. Here the screenshot the code i use on single.php : <!-- post section --> <section class="post-section all-round grid"> <div class="content_wrapper"> <!-- YOUR CONTENT --> </div> </section> <!-- end .post-section --> <!-- comment section --> ...


4

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

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() ) { ...


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

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 ...


0

You can do it by using either of them get_comments() wp_list_comments()


0

I solved my problem by adding a hook on the action wp_insert_comment. When my hook is called i calculate the average rating for each rating meta-tag of my comments. Then i add a meta tag to the post with the result I can use the post meta-tag to sort with wp-query



Top 50 recent answers are included