Hi
I want to change the three boxes that are under the imageslider on my homepage. Now there are showing the three latest post, but I want them to show my own chosen text and link to a excisting page.
http://87.233.179.106/~gelukbv/geluk-bv.com/
Wich code do I need to change? Can anyone help me please?
Thnx!
Thanks for your reply!
The only thing I can change in the admin panel is wich category I want to show:
Select the category that you would like to have displayed in the featured section on your homepage.
The code for index.php:
<?php get_header(); ?>
<?php if ( get_option('fancytheme_bc_home') == '1' ) {
include ('breadcrumbs.php');
}
?>
<?php if (is_home()) {
include ('head_highlight.php');
include ('products_highlight.php');
}
include ('sidebar_home.php');
?>
<div id="main-content">
<div class="padd20">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post-item clearfix">
<h2><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( get_post_meta($post?>ID,'thumb', true) ) {
$thumbwidth = get_option('fancytheme_thumb_width'); // thumbnail width
$thumbheight = get_option('fancytheme_thumb_height'); // thumbnail height
if ( $thumbwidth && $thumbheight ) {
?>
<a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>" rel="bookmark"><img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post?>ID, "thumb", $single = true); ?>&h=<?php echo $thumbheight ?>&w=<?php echo $thumbwidth ?>&zc=1&q=80" alt="<?php the_title(); ?>" /></a>
<?php }
}
?>
<h3>Posted on <?php the_time('l, F jS, Y') ?></h3>
<?php the_excerpt(); ?>
<a href="<?php the_permalink() ?>" class="detail">lees verder</a>
</div><!-- end post-item -->
<?php endwhile; ?>
<?php if (show_posts_nav()) : ?>
<div class="clearfix" id="post-navigation">
<span class="previous"><?php next_posts_link('Older Entries') ?></span>
<span class="next"><?php previous_posts_link('Newer Entries') ?></span>
</div>
<?php endif; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div><!-- padd20 -->
</div><!-- main-content -->
<?php get_footer(); ?>
The code for products_highlight.php:
<div class="clearfix" id="products-highlight">
<?php global $post;
$postcount = 0;
$args = array(
'numberposts' ?> 3,
'cat' => get_cat_id( get_option('fancytheme_featured_category') ), // featured category
);
$myposts = get_posts($args);
foreach($myposts as $post) :
$postcount ++;
?>
<div class="product<?php if ( $postcount == 3 ) echo ' last'; ?>">
<div class="padd15">
<h3><a href="<?php the_permalink(); ?>"><?php echo ShortenText( get_the_title(), 25 ); ?></a></h3>
<?php if ( get_post_meta($post?>ID,'thumb', true) ) {
?>
<a href="<?php the_permalink(); ?>" title="Permanent Link to <?php the_title(); ?>" rel="bookmark"><img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post?>ID, "thumb", $single = true); ?>&h=80&w=80&zc=1&q=80" alt="<?php the_title(); ?>" /></a>
<?php }
?>
<p><?php echo ShortenText( $post?>post_content, 130 ); ?></p>
<a href="<?php the_permalink(); ?>" class="detail">lees meer</a>
<?php edit_post_link('Edit', '<?>', ''); ?>
</div><!-- end padd10 -->
</div><!-- end product -->
<?php endforeach; ?>
</div><!-- end product-highlight -->
Nobody?
