Definition:
function get_post_format_link( $format ) {}
Returns a link to a post format index.
Parameters
- string $format: Post format
Return values
returns:Link
Source code
function get_post_format_link( $format ) {
$term = get_term_by('slug', 'post-format-' . $format, 'post_format' );
if ( ! $term || is_wp_error( $term ) )
return false;
return get_term_link( $term );
}
9587

February 24, 2011 


No comments yet... Be the first to leave a reply!