[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 617
  • Last Modified:

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
0
hayward03
Asked:
hayward03
1 Solution
 
thydzikCommented:
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now