0

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. – Nicolai Oct 13 '15 at 9:26
  • @ialocin you should post that as an answer ;-) – Pieter Goosen Oct 13 '15 at 9:38
  • @ialocin in wp-post featured image is not storing , i updated my table structure screenshot please check it. Thank you – user2003956 Oct 13 '15 at 9:51
  • too late I guess :) @PieterGoosen I left you a message in The Loop – Nicolai Oct 16 '15 at 10:49
0

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, privacy policy and cookie policy

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