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

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

Related Functions

get_the_guid, get_the_time, get_the_date, get_cat_id, get_theme_mod

Top Google Results

User discussions

wpseek mobile