Query thumbnail, title, & excerpt of a specific post (2 posts)

  1. antonel1
    Posted 3 years ago #

    I created a page. I would like to query the thumbnail, title, and excerpt of specific posts. How can I do this? Or can you point me to the right direction.

    I looked around but I haven't found a solution yet. Your help will be greatly appreciated.

  2. antonel1
    Posted 3 years ago #

    This is what I have:

    	query_posts('p=3442'); ?>
    	if ( ! empty( $category_description ) )
    	echo '' . $category_description . '';
    	get_template_part( 'loop');

    This successfully gets a specific post & its thumbnail. However it omits the excerpt and shows all the posts content too. Can someone help me?

Topic Closed

This topic has been closed to new replies.

About this Topic