Post_Id in Wordpress Feed

Hi,

I have a wordpress blog and I want to add the PostID into the feed, but cant figure out how to do this
hayward03Asked:
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
the_ID();

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
0
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.