예제 #1
0
    ?>
"><![CDATA[<?php 
    the_excerpt_rss();
    ?>
]]></summary>
<?php 
    if (!get_option('rss_use_excerpt')) {
        ?>
		<content type="<?php 
        html_type_rss();
        ?>
" xml:base="<?php 
        the_permalink_rss();
        ?>
"><![CDATA[<?php 
        the_content_feed('atom');
        ?>
]]></content>
<?php 
    }
    ?>
	<?php 
    atom_enclosure();
    do_action('atom_entry');
    ?>
	</entry>
	<?php 
}
?>
</feed>
예제 #2
0
		<description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
<?php 
    } else {
        ?>
		<description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
	<?php 
        if (strlen($post->post_content) > 0) {
            ?>
		<content:encoded><![CDATA[<?php 
            the_content_feed('rss2');
            ?>
]]></content:encoded>
	<?php 
        } else {
            ?>
		<content:encoded><![CDATA[<?php 
            the_excerpt_rss();
            ?>
]]></content:encoded>
	<?php 
        }
    }
    ?>
		<wfw:commentRss><?php 
    echo esc_url(get_post_comments_feed_link(null, 'rss2'));
예제 #3
0
            <?php 
    if (get_option('rss_use_excerpt')) {
        ?>
                <description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
            <?php 
    } else {
        ?>
                <description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
                <content:encoded><![CDATA[<?php 
        the_content_feed('rdf');
        ?>
]]></content:encoded>
            <?php 
    }
    ?>
            <?php 
    /**
     * Fires at the end of each RDF feed item.
     *
     * @since 2.0.0
     */
    do_action('rdf_item');
    ?>
        </item>
    <?php 
    echo date("Y-m-d\\TH:i:s\\Z", get_field("meet_start_time", get_the_ID()));
    ?>
</dc:date>
<?php 
    the_category_rss("rdf");
    if (get_option("rss_use_excerpt")) {
        ?>
		<description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
<?php 
    } else {
        ?>
		<description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
		<content:encoded><![CDATA[<?php 
        the_content_feed("rdf");
        ?>
]]></content:encoded>
<?php 
    }
    do_action("rdf_item");
    ?>
	</item>
<?php 
}
?>
</rdf:RDF>
/**
 * Output feed content without infinite loop
 *  
**/
function cfct_the_content_feed()
{
    remove_filter('the_content_feed', 'cfct_content_feed');
    the_content_feed('rss2');
    add_filter('the_content_feed', 'cfct_content_feed');
}
예제 #6
0
	<id><?php bloginfo('atom_url'); ?></id>
	<link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />

	<?php do_action('atom_head'); ?>
	<?php while (have_posts()) : the_post(); ?>
	<entry>
		<author>
			<name><?php the_author() ?></name>
			<?php $author_url = get_the_author_meta('url'); if ( !empty($author_url) ) : ?>
			<uri><?php the_author_meta('url')?></uri>
			<?php endif; ?>
		</author>
		<title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
		<link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
		<id><?php the_guid() ; ?></id>
		<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
		<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
		<?php the_category_rss('atom') ?>
		<summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
<?php if ( !get_option('rss_use_excerpt') ) : ?>
		<content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content_feed('atom') ?>]]></content>
<?php endif; ?>
<?php atom_enclosure(); ?>
<?php do_action('atom_entry'); ?>
		<link rel="replies" type="text/html" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
		<link rel="replies" type="application/atom+xml" href="<?php echo get_post_comments_feed_link(0,'atom') ?>" thr:count="<?php echo get_comments_number()?>"/>
		<thr:total><?php echo get_comments_number()?></thr:total>
	</entry>
	<?php endwhile ; ?>
</feed>
예제 #7
0
    ?>
</title>
                <link><?php 
    the_permalink_rss();
    ?>
</link>
                <guid><?php 
    the_guid();
    ?>
</guid>
                <snippet><?php 
    echo mp3_enclosure();
    ?>
</snippet>
                <description><![CDATA[<?php 
    echo the_content_feed();
    ?>
]]></description>
                <itunes:author><?php 
    the_author();
    ?>
</itunes:author>
                <itunes:subtitle><?php 
    the_excerpt_rss();
    ?>
</itunes:subtitle>
                <itunes:summary></itunes:summary>
                <itunes:image href="<?php 
    echo get_stylesheet_directory_uri();
    ?>
/images/show.jpg" />
예제 #8
0
			<rdf:li rdf:resource="<?php the_permalink_rss() ?>"/>
		<?php endwhile; ?>
		</rdf:Seq>
	</items>
</channel>
<?php rewind_posts(); while (have_posts()): the_post(); ?>
<item rdf:about="<?php the_permalink_rss() ?>">
	<title><?php the_title_rss() ?></title>
	<link><?php the_permalink_rss() ?></link>
	<dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
	<dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
	<?php the_category_rss('rdf') ?>
<?php if (get_option('rss_use_excerpt')) : ?>
	<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php else : ?>
	<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
	<content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded>
<?php endif; ?>
	<?php
	/**
	 * Fires at the end of each RDF feed item.
	 *
	 * @since 2.0.0
	 */
	do_action( 'rdf_item' );
	?>
</item>
<?php endwhile;  ?>
</rdf:RDF>
>>>>>>> b875702c9c06ab5012e52ff4337439b03918f453