Support » Plugins » Picture Widget

  • Resolved cableghost

    (@cableghost)


    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?

    -Scott

Viewing 1 replies (of 1 total)
  • Thread Starter cableghost

    (@cableghost)

    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?

    -Scott

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