I´m having a strange issue with featured images. Here´s what I did:
- Added theme support for featured images with
add_theme_support( 'post-thumbnails' );
- Attached a featured image to each post
- Included the template tag inside the loop:
Strangely the featured image isn´t showing.
However, when I create my own img element it does show up:
<img src="' . wp_get_attachment_url( get_post_thumbnail_id($post->ID)) . '" />
Does anyone have an idea of what could be the issue here? Or where I could start to look for a solution?
I´m not even sure where to start troubleshooting, so all suggestions are welcome!