Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter certifiedbmx

    (@certifiedbmx)

    That did it! Thank you so much for your help, I was starting to loose the plot.

    I did try the author first as it was a paid theme but he seemed quite puzzled by it.

    Damian

    Thread Starter certifiedbmx

    (@certifiedbmx)

    Thanks for your help, I will give it a go

    Thread Starter certifiedbmx

    (@certifiedbmx)

    <?php get_header(); ?>
    
    	<?php if (have_posts()) : ?>
    
    		<?php $featured_id = -1; $featured = get_featured(1); ?>
        <?php if (!empty($featured)) : $post = $featured[0]; $featured_id = $post->ID; ?>
        <?php $category = get_the_category(); $category = $category[0]; ?>
            <span class="featured-tag">Featured Project</span>
            <a href="<?php echo $post->guid; ?>" title="<?php echo $post->post_title; ?>"><img src="<?php echo $post->featured_image; ?>" border="0" alt="<?php echo $post->post_title; ?>" class="featured" /></a>
            <div class="clear"></div>
            <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
            <p><?php echo truncate($post->post_content, '<!--more-->', '...'); ?></p>
    
            <div class="info">
              <span><?php the_time('n.j.y') ?></span>
              <a href="<?php echo get_category_link($category->cat_ID);?>" title="<?php echo $category->cat_name; ?>"><?php echo $category->cat_name; ?></a>
              <?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'last'); ?>
              <div class="right quote"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>">Read More</a></div>
            </div>
    
            <div class="hr"><hr /></div>
        <?php endif; ?>
    
        <?php while (have_posts()) : the_post(); ?>
        <?php if ($post->ID == $featured_id) continue; ?>
        <?php $category = get_the_category(); $category = $category[0]; ?>
            <div class="post">
              <?php the_post_image(); ?>
              <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
              <p><?php echo truncate($post->post_content, 204, '...'); ?></p>
              <div class="info">
                <span><?php the_time('n.j.y') ?></span>
             		<a href="<?php echo get_category_link($category->cat_ID);?>" title="<?php echo $category->cat_name; ?>"><?php echo $category->cat_name; ?></a>
              	<?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'last'); ?>
                <div class="right quote"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>">Read More</a></div>
                <div class="clear"></div>
              </div>
            </div>
    
            <div class="hr"><hr /></div>
        <?php endwhile; ?>
    
        <?php paged_menu(); ?>
    	<?php else : ?>
    		<h1>Not Found</h1>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    	<?php endif; ?>
    <?php get_footer(); ?>

    Here is my index.php

    Thanks for the above reply

Viewing 3 replies - 1 through 3 (of 3 total)