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
VersionDescription
0.71Introduced.
Was this article helpful?
Dislike 0
Views: 1

Cart

Log in

Create an Account
Back to Top