wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_post_format_link › WordPress Function

Desde3.1.0
Obsoleton/a
get_post_format_link ( $format )
Parâmetros:
  • (string) $format The post format slug.
    Required: Yes
Retorna:
  • (string|WP_Error|false) The post format term link.
Definido em:
Codex:

Returns a link to a post format index.



Fonte

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 );
}