Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_post_format_link [ WordPress Function ]

get_post_format_link ( $format )
Parameters:
  • (string) $format Post format
Returns:
  • (string) Link
Defined at:



Returns a link to a post format index.

Source


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

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics