get_post_type_archive_feed_link [ WordPress Function ]
get_post_type_archive_feed_link ( $post_type, $feed = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: get_post_type_archive_link, get_search_feed_link, get_post_comments_feed_link, is_post_type_archive, post_type_archive_title
Retrieve the permalink for a post type archive feed.
Source
<?php
function get_post_type_archive_feed_link( $post_type, $feed = '' ) {
$default_feed = get_default_feed();
if ( empty( $feed ) )
$feed = $default_feed;
if ( ! $link = get_post_type_archive_link( $post_type ) )
return false;
$post_type_obj = get_post_type_object( $post_type );
if ( $post_type_obj->rewrite['feeds'] && get_option( 'permalink_structure' ) ) {
$link = trailingslashit($link);
$link .= 'feed/';
if ( $feed != $default_feed )
$link .= "$feed/";
} else {
$link = add_query_arg( 'feed', $feed, $link );
}
return apply_filters( 'post_type_archive_feed_link', $link, $feed );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/get post type archive feed link « WordPress Codex
This article is a ROUGH DRAFT. The author is still working on this document, so please do not edit this without the author's permission. The content within this ...
codex.wordpress.org - get_post_type_archive_feed_link() WordPress function reference ...
Retrieve the permalink for a post type archive feed.
queryposts.com - get_post_type_archive_feed_link | A HitchHackers guide through ...
Feb 24, 2011 ... Source code. function get_post_type_archive_feed_link( $post_type, $feed = '' ) { $default_feed = get_default_feed(); if ( empty( $feed ) ) $feed ...
hitchhackerguide.com - is there a way of show woocommerce products in rss feeds - Kriesi.at
$feed = get_post_type_archive_feed_link( 'product' ); ... $feed = add_query_arg(' product_cat', $term->slug, get_post_type_archive_feed_link( 'product' )); ...
www.kriesi.at