Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
the_author example
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'
)
)
: ?> <description><![CDATA[<?php
the_excerpt_rss
(
)
; ?>]]></description> <?php
else
: ?> <description><![CDATA[<?php
the_excerpt_rss
(
)
; ?>]]></description> <?php
$content
=
get_the_content_feed
(
'rss2'
)
; ?> <?php
if
(
strlen
(
$content
)
> 0
)
: ?> <content:encoded><![CDATA[<?php
echo
$content
; ?>]]></content:encoded>
<?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> <?php
endif
; ?> <?php
do_action
(
'atom_head'
)
;
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
;
/** * Fires at the end of each Atom feed author entry. * * @since 3.2.0 */