WordPress.org

Ready to get started?Download WordPress

Forums

Create different thumbnail attributes for each page? (3 posts)

  1. techgal128
    Member
    Posted 1 year ago #

    Hey everyone,

    My site is http://www.bestworldgames.org. I'm trying to figure out how to resize thumbnails specific to a certain page. For example, my homepage thumbnails are looking perfectly fine but when you click on a product, the thumbnail is all skewed. I don't have an imagebox to edit for that page so maybe that's it?

    Here is the template I'm using:

    <?php get_header(); ?>
    
    <div id="content">
    
    <div id="contentleft">
    
    <div class="postarea">
    <?php include(TEMPLATEPATH."/breadcrumb.php");?>
    <div class="trailer">
    <?php $youtubeid = get_post_meta($post->ID, "youtubeid", true); ?>
    <?php if($youtubeid !== '') { ?>
    <div class="video_style">
    <object type="application/x-shockwave-flash" style="width:788px; height:450px; wmode="transparent" data="http://www.youtube.com/v/<?php echo $youtubeid; ?>">
    <param name="wmode" value="transparent"> value="http://www.youtube.com/v/<?php echo $youtubeid; ?>" />
    </object>
    </div>
    <?php } ?>
    </div>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="imageproduct">
    <?php if( get_post_meta($post->ID, "amzn_LargeImageURL", true) ): ?>
    <a>" rel="bookmark"><img class="thumb" src="<?php echo get_post_meta($post->ID, "amzn_LargeImageURL", $single = true); ?>" height="450" width="350" alt="<?php the_title();?>" /></a>
    <?php else: ?>
    <?php endif; ?>
    </div>
    <h1><a>" rel="bookmark"><?php the_title(); ?></a></h1>
    <div class="descproduct">
    <h2>Product Description</h2>
    <?php if( get_post_meta($post->ID, "amzn_ProductDescription", true) ): ?>
    <?php echo get_post_meta($post->ID, "amzn_ProductDescription", $single = true); ?>
    <?php else: ?>
    <?php endif; ?>
    
    </div>
    
    <div class="listprice">
    List Price: <?php if( get_post_meta($post->ID, "amzn_ListPrice", true) ): ?>
    <?php echo get_post_meta($post->ID, "amzn_ListPrice", $single = true); ?>
    <?php else: ?>
    <?php endif; ?>
    </div>
    <div class="details">
    Price: <?php if( get_post_meta($post->ID, "amzn_LowestNewPrice", true) ): ?>
    <?php echo get_post_meta($post->ID, "amzn_LowestNewPrice", $single = true); ?>
    <?php else: ?>
    <?php endif; ?>
    </div>
    
    <div class="details">
    Manufacturer: <?php if( get_post_meta($post->ID, "amzn_Manufacturer", true) ): ?>
    <?php echo get_post_meta($post->ID, "amzn_Manufacturer", $single = true); ?>
    <?php else: ?>
    <?php endif; ?>
    </div>
    
    <div class="details">
    Platform:<?php
    $category = get_the_category();
    echo $category[0]->cat_name;
    ?>
    </div>
    
    <div class="details">
    Availability: <?php if( get_post_meta($post->ID, "amzn_Availability", true) ): ?>
    <?php echo get_post_meta($post->ID, "amzn_Availability", $single = true); ?>
    <?php else: ?>
    <?php endif; ?>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    </div>
    
    <div class="buy">
    <?php if( get_post_meta($post->ID, "amzn_DetailPageURL", true) ): ?>
    <a>ID, "amzn_DetailPageURL", $single = true); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/buynow.png" width="175" height="44" border="0" /></a>
    <?php else: ?>
    <?php endif; ?>
    </div>
    <div class="clear"></div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.', 'w9press'); ?></p><?php endif; ?>
    
    </div>
    <div class="ads728">
    <?php echo stripslashes (get_theme_mod('728ads_code')); ?>
    </div>
    <div id="random">
    <h1>New Releases</h1>
    <?php $postslist = get_posts('numberposts=5&order=DESC'); foreach ($postslist as $post) : setup_postdata($post); ?>
    <div class="randombox">
    <div class="randomin">
    <?php if( get_post_meta($post->ID, "amzn_LargeImageURL", true) ): ?>
    <a>" rel="bookmark"><img class="thumb" src="<?php echo get_post_meta($post->ID, "amzn_LargeImageURL", $single = true); ?>" height="181" width="140" alt="<?php the_title();?>" /></a>
    <?php else: ?>
    <?php endif; ?>
    </div>
    </div>
    <?php endforeach; ?>
    </div>
    
    </div>
    
    <?php include(TEMPLATEPATH."/sidebar_right.php");?>
    
    </div>
    
    <?php // The main column ends  ?>
    
    <?php get_footer(); ?450amzn_Manufacturer

    ------
    [In future please wrap your code in backticks]

    Thanks!

  2. Aditya Pandey
    Member
    Posted 1 year ago #

    Please don't post long codes here. Use service like PasteBin.

    Also, from where did you downloaded your themes? We provide support only for WP.org themes.

  3. techgal128
    Member
    Posted 1 year ago #

    Sorry, I'm new here. :)

    To be honest, I don't know where the theme came from. I bought the site from someone and it's a theme called "floatgame". I can't seem to find anything on it.

Topic Closed

This topic has been closed to new replies.

About this Topic