Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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?


  #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 11:35 AM.


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