I am building a WP plugin. It shows several featured post images with titles atop. It will have a spot on the admin bar to tell it what the featured posts are. What hook do I use to get the post's image and title?


1 Answer 1

<?php echo get_the_title( $post_id ); ?>

<?php get_post_image($post->ID,'large'); ?>

You can customize these to your liking.

or just go to http://codex.wordpress.org/Template_Tags/get_posts

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.