Switch language

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




get_the_guid [ WordPress Function ]

get_the_guid ( $id = 0 )
Parameters:
  • (int) $id Optional. Post ID.
Returns:
  • (string)
Defined at:



Retrieve the Post Global Unique Identifier (guid).

The guid will appear to be a link, but should not be used as an link to the post. The reason you should not use it as a link, is because of moving the blog across domains.

Source


<?php
function get_the_guid$id ) {
    
$post = &get_post($id);

    return 
apply_filters('get_the_guid'$post->guid);
}
?>

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