Support » Plugins and Hacks » [Resolved] Picture Widget

[Resolved] Picture Widget

  • I have tried a few picture-related plug-in’s, but can’t seem to get exactly what I want.

    I would like to present a picture in my sidebar that is based on the tags of the respective post.

    Additionally, I want to set the maximum width of the picture.

    Any ideas?


Viewing 1 replies (of 1 total)
  • How about using WP’s built-in post thumbnail function?

    Here’s the code my theme has in functions.php.
    <?php if ( function_exists("add_theme_support") ) { add_theme_support("post-thumbnails"); } ?>

    I have tried adding the following to my sidebar, but nothing is displayed.
    <?php the_post_thumbnail( 'single-post-thumbnail' ); ?>

    I would also like to set the max width to 180px.

    Any ideas?


Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Picture Widget’ is closed to new replies.