wp_title_rss example

<?php     /** * 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'. */
<?php bloginfo_rss( 'language' ); ?>" <?php     /** * Fires at end of the Atom feed root to add namespaces. * * @since 2.0.0 */
    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 */


header( 'Content-Type: ' . feed_content_type( 'rss' ) . '; charset=' . get_option( 'blog_charset' ), true );
$more = 1;

echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?> <rss version="0.92"> <channel> <title><?php wp_title_rss(); ?></title> <link><?php bloginfo_rss( 'url' ); ?></link> <description><?php bloginfo_rss( 'description' ); ?></description> <lastBuildDate><?php echo get_feed_build_date( 'D, d M Y H:i:s +0000' ); ?></lastBuildDate> <docs>http://backend.userland.com/rss092</docs> <language><?php bloginfo_rss( 'language' ); ?></language> <?php     /** * Fires at the end of the RSS Feed Header. * * @since 2.0.0 */
    
<?php     /** * Fires at the end of the feed root to add namespaces. * * @since 2.0.0 */
    do_action( 'rdf_ns' );
    ?> > <channel rdf:about="<?php bloginfo_rss( 'url' ); ?>"> <title><?php wp_title_rss(); ?></title> <link><?php bloginfo_rss( 'url' ); ?></link> <description><?php bloginfo_rss( 'description' ); ?></description> <dc:date><?php echo get_feed_build_date( 'Y-m-d\TH:i:s\Z' ); ?> </dc:date> <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
Home | Imprint | This part of the site doesn't use cookies.