• Hi

    Is there a way to show thumbnails in the widget for ‘Most Favorited Posts’? I have managed to add code to show thumbnails in the template for a user’s own favorited posts, (wpfp-page-template.php) but it would be nice to show thumbnails in the widget, any help would be great, thanks,

    Joe

Viewing 3 replies - 1 through 3 (of 3 total)
  • How did you end up doing this? I would like to do the same thing as well

    Thread Starter Joe B

    (@joelogic)

    Hi

    This is what I put in the wpfp-page-template.php file, after

    wpfp_remove_favorite_link($post_id);

    (which is on line 21) and before the echo "</li>";

    echo "<h2>			   
    
    	<a href='".get_permalink($post_id)."'
    	title='". $p->post_title ."'
    	image='". woo_get_image('image','300','250','thumbnail',90,$post_id,'img')."'
    	target='". _blank ."'
    >
    
    	" . $p->post_title . "</a>             </h2>" ;

    This works with the WooThemes ‘Object’ theme, changing woo_get_image to get_image in the code above may make it work in other themes, depends on the theme, but I cannot be certain as I haven’t tried it yet.

    I tried to make it work in the widget, but it didn’t, so I paid a coder to have a look, in the end what I did was correct, but the code was missing a div for it to show up – my php coding is quite basic, but I wasn’t far off!

    Joe

    Gert

    (@gert-groeneveld)

    Thanks Joe! This work great!

    Do you perhaps also know a way of posting the entire content of the blogpost?
    Unfortunately this doesn’t work:

    title='". $p->post_title ."'
        image='". woo_get_image('image','300','250','thumbnail',90,$post_id,'img')."'
        content='". the_content('the_content', $post_id)."'
        target='". _blank ."'

    Let me know!
    Gert

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show Thumbnails in the Most Favorited Posts Widget’ is closed to new replies.