Child Comments not showing in `wp_comment_query`
Child Comments not showing in `wp_comment_query`
Child Comments not showing in `wp_comment_query`
Paste URL In comment It auto turn to default title of page with link
Inherit args from the main wp_query or wp_comment_query to my custom query
Get approved comments or comments that the author is me
Restrict users to see only own comments and the post author’s replies
Best method for comment section associated with different images?
The last comments of a post for the author of that post
This notice comes because object $comments is null. So the have_comments() must wrap all the thing to be sure there are comments before using any property. in your case : <?php if ( have_comments() ) : /* the code */ endif; ?>
How to show total comments count of the current logged in user?
add this snippet for according your needed: add_shortcode ( ‘show_recent_comments’, ‘show_recent_comments_handler’ ); function show_recent_comments_handler( $atts, $content = null ) { extract( shortcode_atts( array( “count” => 10, “pretty_permalink” => 0 ), $atts )); $output=””; // this holds the output if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); $args = array( ‘user_id’ => $current_user->ID, ‘number’ => $count, … Read more