StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-04-2009, 02:56 PM
jeffwbuchanan jeffwbuchanan is offline
Registered User
Pro Plus Member
 
Join Date: Jan 2009
Location: Orlando, FL
Posts: 145
Default Adding hpbottom Section Throws Off Sidebars

I've added a hpbottom section on my homepage but it throws off my right sidebars and formatting. What did I do wrong?

www.exoduschurchnetwork.com


Code:
<div id="homepagebottom">
		
			<div class="hpbottom">
			<?php $feature_cat_3 = get_option('church_feature_cat_3'); $feature_cat_3_num = get_option('church_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 more of this review]"); ?>
					
				<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
					
				<?php endwhile; ?>
						
				See More Featured Resources
			
			</div>

		</div>
	</div>
					
			
		
		
		<div id="homepagebottom">
		
			<div class="hpbottom">
			<?php $feature_cat_3 = get_option('church_feature_cat_3'); $feature_cat_3_num = get_option('church_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 more of this review]"); ?>
					
				<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
					
				<?php endwhile; ?>
						
				See More Featured Resources
			
			</div>
          </div>

     </div>

</div>

<?php include(TEMPLATEPATH."/sidebar.php");?>
		
</div>



<?php get_footer(); ?>
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a second row to the hpbottom section dotman General Discussion 6 02-21-2010 10:54 PM
IE 8 Throws off my Navbars goatitis General Discussion 3 08-26-2009 03:52 PM
Putting another category on the hpbottom section on pg. 1 Darlene Darragh General Discussion 4 04-13-2009 01:02 PM
Tutorial section as category - custom sidebars possible? glowinggal General Discussion 10 03-13-2009 12:07 PM


All times are GMT -5. The time now is 01:51 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.