ID ?? 0 ); // Check to see if this is a post or page and comments or trackbacks are open and there are comments if ( (is_singular()) && ((('open' == $post->comment_status) || ('open' == $post->ping_status)) || ($comment_count['approved'] > 0)) ) : // if it is -- comments! comments_template('', true); else : // if not -- widget area! echo '
    '; if ( !dynamic_sidebar('sidebar') ) : /* begin widget area */ ?>
  • '10', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1)); if ($r->have_posts()) : ?>
      have_posts()) : $r->the_post(); ?>
    • get_results("SELECT $wpdb->comments.* FROM $wpdb->comments JOIN $wpdb->posts ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID WHERE comment_approved = '1' AND post_status = 'publish' ORDER BY comment_date_gmt DESC LIMIT 15"); $comments = array_slice( (array) $comments, 0, $number ); if ( $comments ) : foreach ( (array) $comments as $comment) : echo '
    • ' . get_comment_author() . '' . __('commented on', 'steira') . '' . get_the_title($comment->comment_post_ID) . '
    • '; endforeach; endif; ?>
    • XFN
    • WordPress