the_ID()

You are here:

the_ID()

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

Source Source

File: wp-includes/post-template.php

16
17
18
function the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
    echo get_the_ID();
}


Top ↑

Changelog Changelog

Changelog
Version Description
0.71 Introduced.
Was this article helpful?
Dislike 0
Views: 19