Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

How to add post images and excerpts to coding?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Jul 24, 2010, 05:02 AM
optimalwebsite
 
5 posts · Jul 2010
How to add post images and excerpts to coding?

I have a loop which generates a list of saved videos, which is displayed on: http://www.careers4u.tv/my-saved-clips/

This is from the favourite posts plugin, which I've modified for the site. This coding displays the results:

<?php
echo "<div class='wpfp-span'>";
if (!empty($user)):
if (!wpfp_is_user_favlist_public($user)):
echo "$user's Favorite Posts.";
else:
echo "$user's list is not public.";
endif;
endif;

if ($wpfp_before):
echo "<p>".$wpfp_before."</p>";
endif;

echo "<ul>";
if ($favorite_post_ids):
foreach ($favorite_post_ids as $post_id) {
$p = get_post($post_id);
echo "<h5>";
echo "<a href='".get_permalink($post_id)."' title='". $p->post_title ."'>" . $p->post_title . "</a> ";
echo "</h5>";
wpfp_remove_favorite_link($post_id);
}
else:
echo "<li>";
echo $wpfp_options['favorites_empty'];
echo "</li>";
endif;
echo "</ul>";
wpfp_clear_list_link();
echo "</div>";
wpfp_cookie_warning();
?>

My question is how to add a thumbnail of the image, and an excerpt into the results.
The effect I want is idential to the pages of the search results.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Images in excerpts not showing gvlismas Excerpts, Read more, Pagination 2 May 12, 2010 05:49 AM
[SOLVED] How to automatically crop images in excerpts? samij0 Excerpts, Read more, Pagination 3 Mar 17, 2010 09:49 AM
what plugin is better to automatically show thumbnail images in excerpts. falguni1 Plugins & Atahualpa 8 Nov 29, 2009 12:38 PM
How do I add margins/spacing to ALL images using the Images section? oskarfalk Atahualpa 3 Wordpress theme 1 Sep 2, 2009 06:09 AM
Where is php sidebar coding pamlicoink Sidebars & Widgets 3 Aug 12, 2009 05:07 PM


All times are GMT -6. The time now is 08:36 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.