Forums

Default Thumbanil Location + Widgets not showing in Sidebar (1 post)

  1. wiseowldotcom
    Member
    Posted 7 months ago #

    I want to display the first image of the post or if there is no image a default image BUT I can't find where the default image is located or where to put this code in eg php and line

    <?php $values = get_post_custom_values("image"); // set the img custom name
    if (isset($values[0])) { // if there's a img in my custom field
    ?>
    " rel="bookmark" title="<?php the_title_attribute(); ?>"><img src="<?php $values = get_post_custom_values("image"); echo $values[0]; ?>" title="<?php the_title(); ?>"/>
    <?php } // end if statement
    // if there's no img do replace it with no-img
    else { ?>
    " rel="bookmark" title="Read the rest of <?php the_title_attribute(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/no-img.gif" title="<?php the_title(); ?>"/>
    <?php } ?>

    Also I've got 2 sidebars but when I add say 'text' it doesnt actually display..

    Any clues?

    blog - http://www.stocksforbreakfast.com

Reply

You must log in to post.

About this Topic