Featured Content Gallery | WordPress Plugin | iePlexus

Use simple post thumbnails instead of custom fields

Customizing the FCG plugin and more

Use simple post thumbnails instead of custom fields

PostBy jenyus on Tue Apr 19, 2011 4:23 pm

for anyone who might be interested in using this plugin: http://wordpress.org/extend/plugins/sim ... humbnails/

i think it handles the images much better than using the clunky custom fields.

on lines 83 and 84 of gallery.php
change
Code: Select all
<img src="<?php $key="articleimg"; echo get_post_meta($post->ID, $key, true); ?>" alt="<?php $key="alttext"; echo get_post_meta($post->ID, $key, true); ?>" class="full" />
                 <img src="<?php $key=$imgthumb; echo get_post_meta($post->ID, $key, true); ?>" alt="<?php $key="alttext"; echo get_post_meta($post->ID, $key, true); ?>" class="thumbnail" />


to

Code: Select all
  <img src="<?php echo p75GetThumbnail($post->ID, null, null); ?>" class="full" />
                 <img src="<?php echo p75GetThumbnail($post->ID, null, null); ?>" class="thumbnail" />
jenyus
 
Posts: 1
Joined: Tue Apr 19, 2011 3:56 pm

Re: Use simple post thumbnails instead of custom fields

Thank you for using the Featured Content Gallery Forum
 

Return to Plugin Settings, Features, and Options

Who is online

Users browsing this forum: No registered users and 0 guests

cron