get_the_id [ WordPress Function ]
get_the_id ( No parameters )
| Uses: |
|
| Returns: |
|
| Defined at: |
|
Retrieve the ID of the current item in the WordPress Loop.
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- get_the_ID() - WordPress Codex
get_the_ID() Can be used to provide a unique anchor in a script. For instance, a dynamically-generated drop down menu with actions for each post in an archive ...
codex.wordpress.org - Conditional if statement ($post->ID == get_the_ID) not working
Mar 14, 2011 ... The following code should read: If the current custom post type (bbp_forum), is the one being displayed, assign the class 'current' to its ...
wordpress.stackexchange.com - Wordpress get_the_ID() returns nothing but get_the_title() returns ...
This works within the loop: <?php $this_page_id = get_the_ID(); echo $ this_page_id ; ?> Outside of the loop: <?php $this_page_id ...
stackoverflow.com - article-stack » Nice trick to get_the_ID() in wp_head()
Mar 16, 2012 ... Trick to cheat Wordpress to get current post id in wp_head()
article-stack.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- mahalie on "All GUIDs are the same since upgrading"
- Laura McDonald on "All GUIDs are the same since upgrading"
- Elpie on "All GUIDs are the same since upgrading"
- michellekoen on "Getting first post id from category"
- felipelavinz on "All GUIDs are the same since upgrading"
- Laura McDonald on "All GUIDs are the same since upgrading"
- mahalie on "All GUIDs are the same since upgrading"
- Mark / t31os on "All GUIDs are the same since upgrading"
- Laura McDonald on "All GUIDs are the same since upgrading"
- katart17 on "Create current class in Post list based on current post"