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:

Description

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

Related Functions

get_the_guid, get_the_date, get_the_time, get_cat_id, get_the_title

Top Google Results

User discussions

wpseek mobile