get_post_comments_feed_link [ WordPress Function ]
get_post_comments_feed_link ( $post_id = 0, $feed = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: post_comments_feed_link, get_search_comments_feed_link, get_previous_comments_link, get_next_comments_link, get_comments_link
Retrieve the permalink for the post comments feed.
Source
<?php
function get_post_comments_feed_link($post_id = 0, $feed = '') {
$post_id = absint( $post_id );
if ( ! $post_id )
$post_id = get_the_ID();
if ( empty( $feed ) )
$feed = get_default_feed();
if ( '' != get_option('permalink_structure') ) {
if ( 'page' == get_option('show_on_front') && $post_id == get_option('page_on_front') )
$url = _get_page_link( $post_id );
else
$url = get_permalink($post_id);
$url = trailingslashit($url) . 'feed';
if ( $feed != get_default_feed() )
$url .= "/$feed";
$url = user_trailingslashit($url, 'single_feed');
} else {
$type = get_post_field('post_type', $post_id);
if ( 'page' == $type )
$url = home_url("?feed=$feed&page_id=$post_id");
else
$url = home_url("?feed=$feed&p=$post_id");
}
return apply_filters('post_comments_feed_link', $url);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/get post comments feed link « WordPress Codex
Codex. Codex tools: Log in. Function Reference/get post comments feed link ... Usage. <?php get_post_comments_feed_link( $post_id, $feed ) ?> Parameters ...
codex.wordpress.org - WordPress › Support » Tags — get_post_comments_feed_link
Password (forgot?) Register · WordPress › Support » get_post_comments_feed_link. Tag: get_post_comments_feed_link Add New » · Developer Information ...
wordpress.org - get_post_comments_feed_link (WordPress Function) - WPSeek.com
WordPress lookup for get_post_comments_feed_link, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - get_post_comments_feed_link | A HitchHackers guide through ...
Feb 12, 2011 ... function get_post_comments_feed_link($post_id = 0, $feed = '') { $post_id = absint( $post_id ); if ( ! $post_id ) $post_id = get_the_ID(); if ...
hitchhackerguide.com