What i'm trying to achieve:
Replace {$post_title} in a review plugin that displays the Post's Title with a Custom Field. The Custom Field will be called thumb with URL to an image.
What I have
Code to display custom field
Here is the code that I use on my customized WP page, it displays the image from the custom field 'thumb'
<?php
$custom_fields = get_post_custom($post_id); //Current post id
$my_custom_field = $custom_fields['thumb']; //key name
foreach ( $my_custom_field as $key => $value )
echo "<img src='" . $value . "'>";
?>
Code in the plugin that calls the post title
$return .= "<td class='myrp_primary_alt_col myrp_name'><a class='post_name' href='" . get_permalink($post_id) . "'>{$post_title}</a></td>";
I'm not sure how to code in PHP so that the custom field can be displayed instead of post title.
Appreciate your responses to this.
Thanks.