Switch language

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




get_the_id [ WordPress Function ]

get_the_id ( No parameters )
Uses:
  • $post
Returns:
  • (int)
Defined at:



Retrieve the ID of the current item in the WordPress Loop.

Source


<?php
function get_the_ID() {
    global 
$post;
    return 
$post->ID;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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