20 posts
    Has been part of the Envato Community for over 5 years Has collected 10+ items on Envato Market Located in Netherlands
sillie83 says

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!

20 posts
    Has been part of the Envato Community for over 5 years Has collected 10+ items on Envato Market Located in Netherlands
sillie83 says

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">

        &lt;?php if (have_posts()) : ?&gt;

            &lt;?php while (have_posts()) : the_post(); ?&gt;

                <div class="post-item clearfix">

                    <h2><a href="&lt;?php the_permalink() ?&gt;" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;" rel="bookmark">&lt;?php the_title(); ?&gt;</a></h2>
                    &lt;?php if ( get_post_meta($post?&gt;ID,'thumb', true) ) { 
                            $thumbwidth = get_option('fancytheme_thumb_width'); // thumbnail width
                            $thumbheight = get_option('fancytheme_thumb_height'); // thumbnail height
                            if ( $thumbwidth && $thumbheight ) {
                    ?&gt;
                     <a href="&lt;?php the_permalink() ?&gt;" title="Permanent Link to &lt;?php the_title(); ?&gt;" rel="bookmark"><img src="&lt;?php echo bloginfo('template_url'); ?&gt;/thumb.php?src=&lt;?php echo get_post_meta($post?&gt;ID, "thumb", $single = true); ?&gt;&amp;h=&lt;?php echo $thumbheight ?&gt;&amp;w=&lt;?php echo $thumbwidth ?&gt;&amp;zc=1&amp;q=80" alt="&lt;?php the_title(); ?&gt;" /></a>
                    &lt;?php } 
                        }
                    ?&gt;
                    <h3>Posted on &lt;?php the_time('l, F jS, Y') ?&gt;</h3>
                    &lt;?php the_excerpt(); ?&gt;
                    <a href="&lt;?php the_permalink() ?&gt;" class="detail">lees verder</a>

                </div><!-- end post-item -->

            &lt;?php endwhile; ?&gt;

                &lt;?php if (show_posts_nav()) : ?&gt;
                <div class="clearfix" id="post-navigation">
                    <span class="previous">&lt;?php next_posts_link('Older Entries') ?&gt;</span>
                    <span class="next">&lt;?php previous_posts_link('Newer Entries') ?&gt;</span>
                </div>
                &lt;?php endif; ?&gt;    

            &lt;?php else : ?&gt;

            <h2 class="center">Not Found</h2>
            <p class="center">Sorry, but you are looking for something that isn't here.</p>

        &lt;?php endif; ?&gt;            

    </div><!-- padd20 -->
</div><!-- main-content -->

&lt;?php get_footer(); ?&gt;        
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); ?>&amp;h=80&amp;w=80&amp;zc=1&amp;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 -->
20 posts
    Has been part of the Envato Community for over 5 years Has collected 10+ items on Envato Market Located in Netherlands
sillie83 says

Nobody?

by
by
by
by
by
by