How to store the WordPress featured image under the wp_posts table. Can any one help me?

The reason why I am asking same table details (wp_posts), is because I am using a JSON response to add in my android application. So I would like to save featured image also under wp_posts table.

enter image description here

  • 2
    Images are already saved as post type attachment to the wp_posts table, so you are able to get you featured image from there, if you know the corresponding ID. Commented Oct 13, 2015 at 9:26
  • @ialocin you should post that as an answer ;-) Commented Oct 13, 2015 at 9:38
  • @ialocin in wp-post featured image is not storing , i updated my table structure screenshot please check it. Thank you Commented Oct 13, 2015 at 9:51
  • too late I guess :) @PieterGoosen I left you a message in The Loop Commented Oct 16, 2015 at 10:49

1 Answer 1


You should not change anything in the DB structure of wordpress as this is essentially the same as hacking the core.

You should simply write your own json end points which provide you with the relevant info.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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