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 07-29-2009, 05:27 AM
ByteFM ByteFM is offline
Registered User
Genesis Member
 
Join Date: Apr 2009
Posts: 26
Default Problem with duplication of featured content columns again

Hi,

I know this was discussed like a hundred times. Finally I found out how do duplicate the featured content and am possible to change the category ID's via admin panel.
Whatever the new featured left and right columns won't fit below the others.

My page is: http://byte.fm/community/

Here is the code of home.php

Code:
<?php get_header(); ?>

<div id="content">

	<div id="homepage">

    
    	<?php include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php'); ?>
		<?php if (function_exists('gallery_styles')) : ?>
	
</div>	
        <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">
			<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_left')); ?></h3>
                
				<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
				<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
				[img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&amp;h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />	
				<?php else: ?>
				<?php endif; ?>					
				<?php the_title(); ?>
				<?php the_excerpt(); ?>


<font color="black">Mehr News</font>
<?php lpbc('categories=1');?><hr/>		
<style="clear:both">		
				<?php endwhile; ?>

						
			</div>			
				
		</div>





		
		<div id="homepageright">
		
			<div class="hpfeatured">
			<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_right')); ?></h3>
			
				<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_right')."&showposts=".get_theme_mod('featured_top_right_num')); while($recent->have_posts()) : $recent->the_post();?>
				<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
				[img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&amp;h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />	  
				<?php else: ?>
				<?php endif; ?>		
                		
				<?php the_title(); ?>				
				<?php the_content_limit(300, ""); ?>
					

<font color="black">Mehr Vermischtes</font>
<?php lpbc('categories=1');?>
	<hr/>
				
				<?php endwhile; ?>
								

				
			</div>		
			
		</div>
		


<div id="homepageleft2">
				
			<div class="hpfeatured">
			<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_left2')); ?></h3>
                
				<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left2')."&showposts=".get_theme_mod('featured_top_left2_num')); while($recent->have_posts()) : $recent->the_post();?>
				<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
				[img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&amp;h=<?php echo get_theme_mod('featured_top_left2_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left2_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />	
				<?php else: ?>
				<?php endif; ?>					
				<?php the_title(); ?>
				<?php the_excerpt(); ?>


<font color="black">Mehr News</font>
<?php lpbc('categories=1');?><hr/>				
				<?php endwhile; ?>

						
			</div>			
				
		</div>






	<div id="homepageright2">
		
			<div class="hpfeatured">
			<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_right2')); ?></h3>
			
				<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_right2')."&showposts=".get_theme_mod('featured_top_right2_num')); while($recent->have_posts()) : $recent->the_post();?>
				<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
				[img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&amp;h=<?php echo get_theme_mod('featured_top_right2_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_right2_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />	  
				<?php else: ?>
				<?php endif; ?>		
                		
				<?php the_title(); ?>				
				<?php the_content_limit(300, ""); ?>
					

	<hr/>
				
				<?php endwhile; ?>
								

				
			</div>		
			
		</div>






		<div id="homepagebottom">
		
			<div class="hpbottom">
			<h3><?php echo cat_id_to_name(get_theme_mod('featured_bottom')); ?></h3>
				
				<?php $recent = new WP_Query("cat=".get_theme_mod('featured_bottom')."&showposts=".get_theme_mod('featured_bottom_num')); while($recent->have_posts()) : $recent->the_post();?>
				<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
				[img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&amp;h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />	
				<?php else: ?>
				<?php endif; ?>				
				
                <?php the_title(); ?>
				<?php the_content_limit(350, __("[Read more of this review]")); ?> 
					
				<hr/>
					
				<?php endwhile; ?>
						
				<?php $cat = get_category(get_theme_mod('featured_bottom')); ?>
							
			</div>
		
	</div>




     <div id="homepagebottom2">
             
                 <div class="hpbottom">
                 <h3><?php echo cat_id_to_name(get_theme_mod('featured_bottom2')); ?></h3>
                   
                    <?php $recent = new WP_Query("cat=".get_theme_mod('featured_bottom2')."&showposts=".get_theme_mod('featured_bottom2_num')); while($recent->have_posts()) : $recent->the_post();?>
                    <?php if( get_post_meta($post->ID, "thumb", true) ): ?>
                    [img]<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, [/img]&amp;h=<?php echo get_theme_mod('featured_bottom2_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_bottom2_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" />   
                    <?php else: ?>
                    <?php endif; ?>           
                   
                        <?php the_title(); ?>
                    <?php the_content_limit(350, __("[Read more of this review]", 'studiopress')); ?>
                       
                    <hr/>
                       
                    <?php endwhile; ?>
                         
                    <?php $cat = get_category(get_theme_mod('featured_bottom2')); ?>
                    [/b]
                 
                 </div>
             
              </div>

</div>
		

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

<?php // The main column ends  ?>

<?php get_footer(); ?>
Thanks for your help.

Christoph
 

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
Problem with Featured content gallety simo80 General Discussion 6 06-19-2010 06:28 PM
Featured Content Gallery Problem msriverman General Discussion 5 12-27-2009 07:01 PM
Two Columns Under Featured Content RC26 General Discussion 1 08-26-2009 10:11 PM
Featured Content Problem ch0p5 General Discussion 4 11-25-2008 04:10 PM


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

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