the_comment example

<?php endif; ?> <?php     /** * Fires at the end of the Atom comment feed header. * * @since 2.8.0 */
    do_action( 'comments_atom_head' );
?> <?php while ( have_comments() ) :
    the_comment();
    $comment_post    = get_post( $comment->comment_post_ID );
    $GLOBALS['post'] = $comment_post;
    ?> <entry> <title> <?php         if ( ! is_singular() ) {
            $title = get_the_title( $comment_post->ID );
            /** This filter is documented in wp-includes/feed.php */
            $title = apply_filters( 'the_title_rss', $title );
            /* translators: Individual comment title. 1: Post title, 2: Comment author name. */
            

function the_comment() {
    global $wp_query;

    if ( ! isset( $wp_query ) ) {
        return;
    }

    $wp_query->the_comment();
}

/** * Redirect old slugs to the correct permalink. * * Attempts to find the current slug from the past slugs. * * @since 2.1.0 */
function wp_old_slug_redirect() {
    if ( is_404() && '' !== get_query_var( 'name' ) ) {
        
?> </sy:updateFrequency> <?php     /** * Fires at the end of the RSS2 comment feed header. * * @since 2.3.0 */
    do_action( 'commentsrss2_head' );

    while ( have_comments() ) :
        the_comment();
        $comment_post    = get_post( $comment->comment_post_ID );
        $GLOBALS['post'] = $comment_post;
        ?> <item> <title> <?php         if ( ! is_singular() ) {
            $title = get_the_title( $comment_post->ID );
            /** This filter is documented in wp-includes/feed.php */
            $title = apply_filters( 'the_title_rss', $title );
            /* translators: Individual comment title. 1: Post title, 2: Comment author name. */
            
Home | Imprint | This part of the site doesn't use cookies.