Pulling image count number up with custom field
-
Okay I have already searched around for days looking for anything that can help. The way that I have my site set up is that only one article is displayed on the main page as the featured article. Within that featured article, on the right side is a featured image that get’s posted there via the get custom fields plugin. The custom field works just fine and does post the featured image fine. The problem i’m having is when I upload a new featured image (all featured images have the same filename), the inline uploader adds a count number to the image filename. This is fine, but I don’t know how to pull the image count number into the custom field that gets displayed. So I end up having the same featured image displayed on every new post. This would be fine if I was the only user posting articles, but the other users have no idea how stuff like this works. I have also left a message on the plugin creators site, but have got no response so far.
This is the code i’m using on my index.php;
echo c2c_get_custom('featured', '<img alt="Featured Image" width="186" height="140" src="https://www.mydomain.com/wp-content/images/', '.jpg" />', 'blank');
- The topic ‘Pulling image count number up with custom field’ is closed to new replies.