I have a problem in my wordpress theme.
The thumbnail doesn’t appear on every post.
I have a website with games and every game has a thumbnail (image) . But now the image doesn’t appear. When I try to see the image I get this:
Invalid src mime type:
The problematic code is:
<img src="<?php bloginfo('template_url');?>/thumb.php?src=<?=$thumb;?>&w=183&h=140&zc=1" class="thumb" alt="<?php the_title(); ?>" />
What might be wrong?
Browsing to your site I saw what the issue is. If you look at your code, it’s being generated like this:
It seems that your PHP parser isn’t picking up the php in the tag. Try using this instead:
It’s possible your php configuration doesn’t allow for “short-tags”
but instead require the full php tags, which are:
You might be able to override this in your php.ini, but if you don’t have access to that, simply use the full php tags and you should be good to go.