Simple Wordpress problem - get_publish_meta isn't locating custom area values. Here's the code that's tugging in the custom fields:
<img src="<?php echo FCG_PLUGIN_URL; ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, 'slider_image', true); ?>&h=250&w=400&zc=1" alt="<?php echo $post_title; ?>" />
Being produced, this is actually the HTML I recieve:
<img alt="Post Title" src="http://***.com/wp-content/plugins/jquery-slider-for-featured-content/scripts/timthumb.php?src=/&h=50&w=80&zc=1">
You can observe the src= reason for the string is empty - as though there's nothing posting from this. I've isolated and echo'd only the get_publish_meta and it is a whitespace. I'm 100% sure it's named properly inside the publish - can there be something glaring I am missing here?
Really, it gave you '/', which isn't nothing. I'd say that's what's saved as 'slider_image'. Look into the publish (or even the database directly).
Look for the word "slider_image" within the wordpress_posts and wordpress_postmeta tables using phpmyadmin. Then see the row which has it to ascertain if there's anything inside.
Likewise try altering the title from the custom value like a make sure find out if that actually works. I personally use this exact code to behave much like you and delay pills work:
<p><a href="<?php echo get_post_meta($post->ID, 'resume', true) ?>"><img src="<? bloginfo('template_url'); ?>/img/downloadresume.png"></a></p>
I have written some simple templating functions that permit you to make use of the meta data (custom data) inside your theme. You are able to write a template function for just about any meta data key/value pair, and render it inside a theme file like so:
<?php the_meta_templates($meta_data_keys) ?> <?php the_template_for($meta_data_key) ?>
Take a moment to look into the fundamental functions from github and try them. You will need to add these to your styles functions.php file.
If you're calling get_publish_meta within the loop then you definitely should call
get_post_meta(get_the_id(), 'YOURKEY', true) rather than
get_post_meta($post->ID, 'YOURKEY', true)
Strange things occurs when you call get_publish_meta in the loop. In certain styles designers hack the $publish at the start and obtain_publish_meta reduces which means this is among the solution for individuals particular cases too.