WordPress template tags the_ ID is used to output the ID of the current article, which needs to be used in the main loop of the loop.
<p>articleID: <?php the_ID(); ?></p>
the_ The id() function is located at: WP includes / post- template.php
- get_ the_ id()
- the_ title()
- the_ title_ attribute()