get_the_id
get_the_id ( No parameters )
Returns:- (int|false) The ID of the current item in the WordPress Loop. False if $post is not set.
Defined at: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Retrieves the ID of the current item in the WordPress Loop.