1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Problem with web2feel theme

Discussion in 'HTML & Website Design' started by whiteshadow18, Nov 20, 2010.

  1. #1
    My website is real-estate-tipz.com. I have a problem with the slider in the theme called zherald. I have created a post, i inserted the picture in the post, gave it a title, and when i post it, it doesn't show in the featured picture slider. I want to mention that i ave selected the category "pictures" for featured pictures (it is an option in the theme) and the post is in the specifed category, but no picture is shown.
     
    whiteshadow18, Nov 20, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to add a custom field to each featured post. Put "preview" in the key field and a link to the picture in the value field.

    This part of glide.php is where the pictures are added to the slider:
    
    <?php $preview = get_post_meta($post->ID, 'preview', $single = true); ?>
    <img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $preview; ?>&amp;h=230&amp;w=640&amp;zc=1" alt=""/> 
    
    Code (markup):
     
    Last edited: Nov 20, 2010
    Cash Nebula, Nov 20, 2010 IP
    whiteshadow18 likes this.
  3. whiteshadow18

    whiteshadow18 Peon

    Messages:
    378
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you, Worked! Admins may close the topic
     
    whiteshadow18, Nov 20, 2010 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That old way of adding a picture is really dodgy. If you have lots of pictures, you may want to use the new system.

    Thanks for the rep.
     
    Cash Nebula, Nov 20, 2010 IP