Hi,
Is it possible to swap the "Homepage Main" to appear BELOW the "Homepage Top Left" and Homepage Top Right"....Please could someone advise which file needs to be changed and what the file names are...
I'm not sure if this is scripted into the home.php BUT in anticipation that it is, I have my home.php page here:
Code:
<?php
get_header();
function sp_read_more_from($position) {
?>
<strong><a href="<?php echo get_category_link(get_theme_mod($position)); ?>" rel="bookmark"><?php _e("Read More Posts From", 'studiopress'); echo " ". cat_id_to_name(get_theme_mod($position)); ?> »</a></strong>
<?php
}
function sp_post_thumb($post, $position) {
if( get_post_meta($post->ID, "thumb", true) ):
?>
<a href="<?php the_permalink() ?>" rel="bookmark">
<img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod($position.'_thumb_height'); ?>&w=<?php echo get_theme_mod($position.'_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" />
</a>
<?php
else:
// You might want to show a default image?
endif;
}
?>
<div id="content">
<div id="contentleft">
<div class="hptabber">
<?php include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php'); ?>
</div>
<div class="hpfeatured">
<h3><?php echo cat_id_to_name(get_theme_mod('featured_main')); ?></h3>
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_main')."&showposts=".get_theme_mod('featured_main_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php sp_post_thumb($post, 'featured_main'); ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php the_content_limit(315, ""); ?>
<a href="<?php the_permalink() ?>">[<?php _e("Continue reading: ", 'studiopress'); the_title(); ?>]</a>
<hr/>
<?php endwhile; ?>
<?php sp_read_more_from('featured_main'); ?>
</div>
<div class="homeleft">
<div class="homeblock">
<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 sp_post_thumb($post, 'featured_top_left'); ?>
<p><strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong></p>
<?php the_content_limit(80, ""); ?>
<hr/>
<?php endwhile; ?>
<?php sp_read_more_from('featured_top_left'); ?>
</div>
</div>
<div class="homeright">
<div class="homeblock">
<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 sp_post_thumb($post, 'featured_top_right'); ?>
<p><strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong></p>
<?php the_content_limit(80, ""); ?>
<hr/>
<?php endwhile; ?>
<?php sp_read_more_from('featured_top_right'); ?>
</div>
</div>
<div class="clear"></div>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Many thanks and regards
Carl