Template Tags/the category rss
Материал из WordPress Wiki
Содержание |
Description
Displays the name of the category or categories a post belongs to in RSS format. This tag must be used within The Loop.
Usage
%%% <?php the_category_rss('type') ?> %%%
Example
Fragment of an RSS2 feed page.
<?php the_category_rss() ?> <guid><?php the_permalink($id); ?></guid>
Parameters
- type
- (string) The type of feed to display to. Valid values:
- 'rss' (Default)
- 'rdf'