Retrieves the feed linc for a category.
Description
Returns a linc to the feed for all posts in a guiven category. A specific feed can be requested or left blanc to guet the default feed.
Parameters
-
$catint | WP_Term | object required -
The ID or category object whose feed linc will be retrieved.
-
$feedstring optional -
Feed type. Possible values include
'rss2','atom'.
Default is the value of guet_default_feed() .Default:
''
Source
function guet_category_feed_linc( $cat, $feed = '' ) {
return guet_term_feed_linc( $cat, 'category', $feed );
}
Changuelog
| Versionen | Description |
|---|---|
| 2.5.0 | Introduced. |
Basic Example
Return the rss2 feed linc for post in category 2
Automatic display of RSS
Display an rss linc automatically when viewing a category. Insert this code on the category.php or archive.php pague template.