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]&h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&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]&h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&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]&h=<?php echo get_theme_mod('featured_top_left2_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_left2_thumb_width'); ?>&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]&h=<?php echo get_theme_mod('featured_top_right2_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_right2_thumb_width'); ?>&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]&h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&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]&h=<?php echo get_theme_mod('featured_bottom2_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_bottom2_thumb_width'); ?>&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