Beiträge von Xyren

    Das ganze siet so aus:

    Comments.php

    Comment-template.php

    PHP
    protected function comment( $comment, $depth, $args )
    PHP
    <?php if ( '0' == $comment->comment_approved ) : ?>
        <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ) ?></em>
        <br />
    <?php endif; ?>

    Aber es wird nichts angezeigt.
    Ich habe eben mal in der comments.php eine foreach reingepackt, welche die Posts rendert.
    Mit dem ergebniss das keine not approved Posts Iteriert werden weshalb wohl beim hohlen aus der DB nur die approved Posts geholt werden.

    PHP
    if ( $user_ID) {
            $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND (comment_approved = '1' OR ( user_id = %d AND comment_approved = '0' ) )  ORDER BY comment_date_gmt", $post->ID, $user_ID));
        } else if ( empty($comment_author) ) {
            $comments = get_comments( array('post_id' => $post->ID, 'status' => 'approve', 'order' => 'ASC') );
        } else {
            $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND ( comment_approved = '1' OR ( comment_author = %s AND comment_author_email = %s AND comment_approved = '0' ) ) ORDER BY comment_date_gmt", $post->ID, wp_specialchars_decode($comment_author,ENT_QUOTES), $comment_author_email));
        }

    Kenne mich leider mit PHP nicht aus und steige bei dem Chaotischen Wust nicht durch.

    Ich hoffe einer von euch kan damit was anfangen und auf den schuldigen schließen.