![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Need help understanding what I'm doing wrong with hpbottom images not showing up. Instead, I get funky repeats of my blog post titles. Not pretty!
Website: http://www.yourwritelife.com (using v 3.0) I've reviewed viewtopic.php?f=15&t=16066 I've added hpbottom and values with mixed results. Only one resulted in hoped-for results: http://www.yourwritelife.com/2009/07...e-teacher-man/ Value is http://www.yourwritelife.com/wp-cont...bone-70x70.jpg The other 2 attempts manage to repeat the post headline in hpbottom but no thumb 1. For this post: http://www.yourwritelife.com/2009/09...stration-open/ I added hpbottom and placed this in the value field: http://www.yourwritelife.com/wp-cont...ting-70x70.JPG The result is the title of the post is repeated on the bottom home page titling, but no thumb photo shows. I tried changing value to http://www.yourwritelife.com/wp-cont...reflecting.JPG without the size dimensions. Still no go. 2. For this post: http://www.yourwritelife.com/2009/09...e-season-fall/ I added hpbottom and this value: http://www.yourwritelife.com/wp-cont...nail-70x70.JPG and also tried http://www.yourwritelife.com/wp-cont...wthumbnail.JPG Clearly, I'm missing something since 1 worked and 2 did not. Is it the .JPG vs. .jpg syntax that's off? But these photos show in the posts when inserted. Thanks for your help with this! Debra Here is my current home.php Code:
<?php get_header(); ?>
<div id="content">
<div id="homepage">
<?php /*Check for the 'gallery_styles' function. if it's there, then include it. If not, do nothing*/ ?>
<?php if (function_exists('gallery_styles')) : ?>
<div id="homepagetop">
<div class="featuredtop">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
</div>
</div>
<?php endif; ?>
<div id="homepageleft">
<div class="hpfeatured">
<?php $feature_cat_1 = get_option('lifestyle_feature_cat_1'); $feature_cat_1_num = get_option('lifestyle_feature_cat_1_num'); if(!$feature_cat_1) $feature_cat_1 = 1; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_1); ?></h3>
<?php $recent = new WP_Query("cat=".$feature_cat_1."&showposts=".$feature_cat_1_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(180, ""); ?>
<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
Read More Posts From This Category
</div>
</div>
<div id="homepageright">
<div class="hpfeatured">
<?php $feature_cat_2 = get_option('lifestyle_feature_cat_2'); $feature_cat_2_num = get_option('lifestyle_feature_cat_2_num'); if(!$feature_cat_2) $feature_cat_2 = 1; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_2); ?></h3>
<?php $recent = new WP_Query("cat=".$feature_cat_2."&showposts=".$feature_cat_2_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(180, ""); ?>
<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
Read More Posts From This Category
</div>
</div>
<div id="homepagebottom">
<div class="hpbottom">
<?php $feature_cat_3 = get_option('lifestyle_feature_cat_3'); $feature_cat_3_num = get_option('lifestyle_feature_cat_3_num'); if(!$feature_cat_3) $feature_cat_3 = 1; //setting a default ?>
<h3><?php echo cat_id_to_name($feature_cat_3); ?></h3>
<?php $recent = new WP_Query("cat=".$feature_cat_3."&showposts=".$feature_cat_3_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
[img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
<?php the_title(); ?>
<?php the_content_limit(350, "[Read the rest of this article]"); ?>
<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
Read More Posts From This Category
</div>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<?php get_footer(); ?>
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| funky code showing above header | karenleighburton | General Discussion | 1 | 08-13-2010 11:57 AM |
| Post pages displaying funky - help please? | Carrie | General Discussion | 3 | 05-11-2009 01:24 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us