get_the_ID() is a php function in WordPress. It retrieves the Post ID for a particular post. In WordPress, each post has a unique ID. There may be situations when you need to apply an action to a specific post. This can be done by using the get_the_ID function.
For Example,
if (get_the_ID() )=212 { ?>
Steps
<?php } ?>
Advertisements