get_search_feed_link [ WordPress Function ]
get_search_feed_link ( $search_query = '', $feed = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_search_link, get_term_feed_link, get_search_comments_feed_link, get_tag_feed_link, get_author_feed_link
Retrieve the permalink for the feed of the search results.
Source
<?php
function get_search_feed_link($search_query = '', $feed = '') {
global $wp_rewrite;
$link = get_search_link($search_query);
if ( empty($feed) )
$feed = get_default_feed();
$permastruct = $wp_rewrite->get_search_permastruct();
if ( empty($permastruct) ) {
$link = add_query_arg('feed', $feed, $link);
} else {
$link = trailingslashit($link);
$link .= "feed/$feed/";
}
$link = apply_filters('search_feed_link', $link, $feed, 'posts');
return $link;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/get search feed link « WordPress Codex
<?php echo get_search_feed_link( $search_query, $feed ) ?> If you don't echo the function you're simply going to get a permalink to the page with no RSS feed ...
codex.wordpress.org - (Search query should be urlencoded in get_search_feed_link() and
Search query should be urlencoded in get_search_feed_link() and ... get_search_feed_link() and get_search_comments_feed_link() do not urlencod the search ...
core.trac.wordpress.org - get_search_feed_link
Oct 17, 2011 ... Today we're going to dig deep into the WordPress search. While many people think that WordPress search isn't all it should be I've never found ...
wpthemetutorial.com - Function Reference/get search feed link - WordPress 中文文档
Mar 14, 2009 ... Description. Retrieve the permalink for the feed of the search results. Usage. %% %?php get_search_feed_link( $search_query, $feed ) ?%%% ...
codex.wordpress.org.cn