Support » Plugins and Hacks » FEATURED IMG POSITION IN MYSQL


Viewing 3 replies - 1 through 3 (of 3 total)
  • I explain:
    i can get attachments by the table wp_post (post_type=’attachments’) but if i have some products with the same thumbnail/attachments i can’t get the image with this system.
    i looked for the function wp_get_attachment but i can’t take $attachment_id to pass to this function.
    where is stored the featured image of these posts?

    it’s the same as for a normal post – in postmeta, the meta_key _thumbnail_id – this gives you the post id of the attachment post

    if you want the url, use wp_get_attachment_url( get_post_thumbnail_id() )

    i have to recover out of themes of some of them.
    in an other website, i have done a catalog of my ecommerce autogenerated in pdf.
    the duplicated image (the featured image assigned to more than one product isn’t showed.) try visiting:

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FEATURED IMG POSITION IN MYSQL’ is closed to new replies.