Where in wordpress database are stored URLs of thumbnails?

0
0

To get the URLs of the images from the wordpress database you need to use 2 queries:

1) SELECT * FROM wp_postmeta WHERE post_id= "some_id" AND meta_key='_thumbnail_id'

$id =  the_returned_id 

2) SELECT * FROM 'wp_postmeta' WHERE post_id=$id

 

 

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website