I am using a theme called “Brandford Magzine” and here is the link: http://www.wp-themes.der-prinz.com/magazine/a-featured-page/
It uses a custom field called “leadimage” in each article where one have to specify an image URL to be displayed on the front page. The code it’s using is this:
<img src=”<?php $values = get_post_custom_values(“leadimage”); echo $values; ?> ” alt=”leadimage” id=”leadpic” width=”260″ height=”230″/>
I am wondering is there a function in word press, rather then get_post_custom_values(“leadimage”) that allows one to read the first image in an article with out using the custom fields?
Many thanks for your help!
- The topic ‘Automatically reading the first image in an article as a thumbnail’ is closed to new replies.