Accessing post custom variables within a plugin - Wordpress

warezb

New Member
I've tried the following method within a plugin:\[code\]get_post_meta($featuredPosts[$i]->ID, "Thumbnail", true);\[/code\]within the following plugin code:\[code\]$featuredPosts = new WP_Query();$featuredPosts->query('showposts=5&cat=1');for($i=1; $i<=$featuredPosts; $i++) { // second for() loop for post slides while ($featuredPosts->have_posts()) : $featuredPosts->the_post(); // loop for posts get_post_meta($featuredPosts[$i]->ID, "Thumbnail", true); endwhile;}\[/code\]unfortunately this doesn't return any values :(Any ideas guys?
 
Back
Top