_post_format_link [ WordPress Function ]
_post_format_link ( $link, $term, $taxonomy )
| Access: |
|
| Defined at: |
|
Soorgelijke functies: get_post_format_link, get_post_format_string, post_permalink, has_post_format, set_post_format
Filters the post format term link to remove the format prefix.
Source
<?php
function _post_format_link( $link, $term, $taxonomy ) {
global $wp_rewrite;
if ( 'post_format' != $taxonomy )
return $link;
if ( $wp_rewrite->get_extra_permastruct( $taxonomy ) ) {
return str_replace( "/{$term->slug}", '/' . str_replace( 'post-format-', '', $term->slug ), $link );
} else {
$link = remove_query_arg( 'post_format', $link );
return add_query_arg( 'post_format', str_replace( 'post-format-', '', $term->slug ), $link );
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Warning: Missing argument 2 for _post_format_link() in « bring the ...
Hi. My boomerang theme has been running just fine until I updated to WordPress 3.1 today. Now you can go to the portfolio section, but if you click to sort by any ...
bringthepixel.com - Function Reference/get post format link « WordPress Codex
Function Reference/get post format link. Languages: English • (Add your language). Contents. 1 Description; 2 Usage; 3 Parameters; 4 Changelog; 5 Source File ...
codex.wordpress.org - _post_format_link (WordPress Function) - WPSeek.com
WordPress lookup for _post_format_link, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - Michael Fields » Post Format Queries
Jul 12, 2011 ... $no_links = get_posts( array( 'tax_query' => array( array( 'taxonomy' => ' post_format', 'field' => 'slug', 'terms' => array( 'post-format-link' ) ...
wordpress.mfields.org