I must be doing something wrong here. I want to display the custom fields "pw_featured_note" & "pw_featured_price"
Here is my code so far
function featured() {
query_posts('post_type=property&posts_per_page=2');
if (have_posts()) :
while (have_posts()) : the_post();
echo "<div class=\"singlefeatured group\">";
if ( get_post_meta($post->ID, 'pw_featured_property', true) ) ;
echo "<a href='".get_permalink()."'>";
the_post_thumbnail('home-thumb');
echo "</a>";
echo "<h2><a href='".get_permalink()."'>".get_the_title()."</a></h2>";
echo "<p>".get_post_meta($post->ID, 'pw_featured_property', true)."</p>";
echo "<p> goodbye </p>";
echo "</div>";
endwhile;
endif;
wp_reset_query();
}
add_shortcode('featuredproperty', 'featured');
Any help would be greatly appreciated.
echo
something in a shortcode function, usereturn $string;
instead.