Does an article (post) id ever change?


So I’m working on a plugin for wordpress, and a novice at it as well. I need to use the ID of a wordpress post, or blog article rather, as a unique reference id, or lets say in database terms, a Unique or Primary key.

Does the ID ever change on a blog?

Extra background info..:

I’m using this function to get the id of a unique post:


Also, the URL of a blog post on my test site has a parameter with a number (ID number?):


But I’ve seen blogs where the title is included in the URL instead of the parameter p=87.

When I print out the function the_ID();, it returns the parameter number 87. Can I be certain that it doesn’t change and use it on external sites for linking purposes?

, Ihsan 2 years 2020-01-09T08:40:11-05:00 0 Answers 87 views 0

Leave an answer