Featured Image and custom field

This topic contains 1 reply and 2 voices, and was last updated by towhid 9 years, 8 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
April 17, 2015 at 11:53 am 41580
towhid Is there a custom field for the featured image of a product? Does it contain the full path? What does it contain, if there is no image? Thank you and regards Martin
April 18, 2015 at 2:02 pm 41636
towhid towhid

Hello Martin,

For get feature image of a product or post please use this function – get_the_post_thumbnail( $size, $attr );.

To know more about how to featured image please read this documentation – http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail

Thank you:)

Viewing 1 Posts - 1 through 1 (of 1 total)