Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using JSON api plugin to pull data from wordpress into an app I am making. I need a unique identifier to make sure I don't have any duplicates WHILE also using the identifier as a way to sort from newest post to oldest post. As of right now I'm confused because I pull the 10 most recent posts. I then take the ID and I attempt to reach but I don't get the correct post. I get a different one. I'm starting to run out of ideas?

share|improve this question

1 Answer 1

If you look at the description for the different tables used by WordPress, the columns described as "auto_increment" will be unique.

I am not sure what you are doing though. The URL structure you are using is not one that I recognize. That is, the syntax I think you want is this:

rather than this:

?p= + a valid ID should always give you the post with the referenced ID number.

share|improve this answer
Hmm... I was able to get the post through api/get_post/?post_id=1774 –  EGHDK Jan 18 '14 at 4:36
Your example in the question is Your example in the preceding comment looks to be passing data through an interface provided by the plugin. –  s_ha_dum Jan 18 '14 at 15:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.