self_link example

/* translators: Comments feed title. %s: Post title. */
        printf( ent2ncr( __( 'Comments on: %s' ) )get_the_title_rss() );
    } elseif ( is_search() ) {
        /* translators: Comments feed title. 1: Site title, 2: Search query. */
        printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) )get_bloginfo_rss( 'name' )get_search_query() );
    } else {
        /* translators: Comments feed title. %s: Site title. */
        printf( ent2ncr( __( 'Comments for %s' ) )get_wp_title_rss() );
    }
    ?> </title> <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> <link><?php ( is_single() ) ? the_permalink_rss() : bloginfo_rss( 'url' ); ?></link> <description><?php bloginfo_rss( 'description' ); ?></description> <lastBuildDate><?php echo get_feed_build_date( 'r' ); ?></lastBuildDate> <sy:updatePeriod> <?php         /** This filter is documented in wp-includes/feed-rss2.php */
        echo apply_filters( 'rss_update_period', 'hourly' );
    ?> </sy:updatePeriod> <sy:updateFrequency> <?php

    do_action( 'atom_ns' );
    ?> > <title type="text"><?php wp_title_rss(); ?></title> <subtitle type="text"><?php bloginfo_rss( 'description' ); ?></subtitle> <updated><?php echo get_feed_build_date( 'Y-m-d\TH:i:s\Z' ); ?></updated> <link rel="alternate" type="<?php bloginfo_rss( 'html_type' ); ?>" href="<?php bloginfo_rss( 'url' ); ?>" /> <id><?php bloginfo( 'atom_url' ); ?></id> <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" /> <?php     /** * Fires just before the first Atom feed entry. * * @since 2.0.0 */
    do_action( 'atom_head' );

    while ( have_posts() ) :
        the_post();
        
    /** * Fires at the end of the RSS root to add namespaces. * * @since 2.0.0 */
    do_action( 'rss2_ns' );
    ?> > <channel> <title><?php wp_title_rss(); ?></title> <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> <link><?php bloginfo_rss( 'url' ); ?></link> <description><?php bloginfo_rss( 'description' ); ?></description> <lastBuildDate><?php echo get_feed_build_date( 'r' ); ?></lastBuildDate> <language><?php bloginfo_rss( 'language' ); ?></language> <sy:updatePeriod> <?php         $duration = 'hourly';

        /** * Filters how often to update the RSS feed. * * @since 2.1.0 * * @param string $duration The update period. Accepts 'hourly', 'daily', 'weekly', 'monthly', * 'yearly'. Default 'hourly'. */
Home | Imprint | This part of the site doesn't use cookies.