Last active
May 26, 2020 17:19
-
-
Save someguy9/97c809717ec4588f7f849e4f6280a019 to your computer and use it in GitHub Desktop.
Get the current post ID in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo 'The current post ID is: '.get_the_ID(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment