Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
the_title_rss example
endif
;
/** * Fires at the end of each Atom feed author entry. * * @since 3.2.0 */
do_action
(
'atom_author'
)
;
?> </author> <title type="<?php
html_type_rss
(
)
; ?>"><![CDATA[<?php
the_title_rss
(
)
; ?>]]></title> <link rel="alternate" type="<?php
bloginfo_rss
(
'html_type'
)
; ?>" 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>
<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:creator><![CDATA[<?php
the_author
(
)
; ?>]]></dc:creator> <dc:date><?php
echo
mysql2date
(
'Y-m-d\TH:i:s\Z',
$post
->post_date_gmt, false
)
; ?></dc:date> <?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>
/** * Fires at the end of the RSS2 Feed Header. * * @since 2.0.0 */
do_action
(
'rss2_head'
)
;
while
(
have_posts
(
)
)
:
the_post
(
)
;
?> <item> <title><?php
the_title_rss
(
)
; ?></title> <link><?php
the_permalink_rss
(
)
; ?></link> <?php
if
(
get_comments_number
(
)
||
comments_open
(
)
)
: ?> <comments><?php
comments_link_feed
(
)
; ?></comments> <?php
endif
; ?> <dc:creator><![CDATA[<?php
the_author
(
)
; ?>]]></dc:creator> <pubDate><?php
echo
mysql2date
(
'D, d M Y H:i:s +0000',
get_post_time
(
'Y-m-d H:i:s', true
)
, false
)
; ?></pubDate> <?php
the_category_rss
(
'rss2'
)
; ?> <guid isPermaLink="false"><?php
the_guid
(
)
; ?></guid> <?php
if
(
get_option
(
'rss_use_excerpt'
)
)
: ?>
do_action
(
'rss_head'
)
;
?> <?php
while
(
have_posts
(
)
)
:
the_post
(
)
;
?> <item> <title><?php
the_title_rss
(
)
; ?></title> <description><![CDATA[<?php
the_excerpt_rss
(
)
; ?>]]></description> <link><?php
the_permalink_rss
(
)
; ?></link> <?php /** * Fires at the end of each RSS feed item. * * @since 2.0.0 */
do_action
(
'rss_item'
)
;
?> </item>