author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 16 | a86126ab1dd4 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* RSS 0.92 Feed Template for displaying RSS 0.92 Posts feed. |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
*/ |
|
7 |
||
9 | 8 |
header( 'Content-Type: ' . feed_content_type( 'rss' ) . '; charset=' . get_option( 'blog_charset' ), true ); |
0 | 9 |
$more = 1; |
10 |
||
9 | 11 |
echo '<?xml version="1.0" encoding="' . get_option( 'blog_charset' ) . '"?' . '>'; ?> |
0 | 12 |
<rss version="0.92"> |
13 |
<channel> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
14 |
<title><?php wp_title_rss(); ?></title> |
9 | 15 |
<link><?php bloginfo_rss( 'url' ); ?></link> |
16 |
<description><?php bloginfo_rss( 'description' ); ?></description> |
|
17 |
<lastBuildDate><?php echo get_feed_build_date( 'D, d M Y H:i:s +0000' ); ?></lastBuildDate> |
|
0 | 18 |
<docs>http://backend.userland.com/rss092</docs> |
19 |
<language><?php bloginfo_rss( 'language' ); ?></language> |
|
20 |
<?php |
|
21 |
/** |
|
22 |
* Fires at the end of the RSS Feed Header. |
|
23 |
* |
|
24 |
* @since 2.0.0 |
|
25 |
*/ |
|
26 |
do_action( 'rss_head' ); |
|
27 |
?> |
|
28 |
||
9 | 29 |
<?php |
30 |
while ( have_posts() ) : |
|
31 |
the_post(); |
|
32 |
?> |
|
0 | 33 |
<item> |
9 | 34 |
<title><?php the_title_rss(); ?></title> |
35 |
<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description> |
|
36 |
<link><?php the_permalink_rss(); ?></link> |
|
0 | 37 |
<?php |
38 |
/** |
|
39 |
* Fires at the end of each RSS feed item. |
|
40 |
* |
|
41 |
* @since 2.0.0 |
|
42 |
*/ |
|
43 |
do_action( 'rss_item' ); |
|
44 |
?> |
|
45 |
</item> |
|
46 |
<?php endwhile; ?> |
|
47 |
</channel> |
|
48 |
</rss> |