Post_Id in Wordpress Feed


I have a wordpress blog and I want to add the PostID into the feed, but cant figure out how to do this
Who is Participating?
thydzikConnect With a Mentor Commented:
Depends on where you want to put it in the feed, and also what theme you are using.

But to get the post id use

Open in new window

ie to display it as is;
<h2><?php the_ID(); ?></h2>

Open in new window

for the kubrick theme you would add it to the single.php file
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.