|
Here is the code for the main page, I'm pretty sure it's in here that I need to change but I don't know where the specific code which I need to take out is, can anyone point it out for me?:
<?php get_header(); ?>
<div id="content_container">
<div id="content_container_bg">
<div id="content">
<?php
//begin featured posts slider
if (function_exists('get_featured_posts')) {
?>
<div id="featured_posts" class="<?php echo get_option('fh_featured_color'); ?>">
<div id="slider">
<?php
get_featured_posts();
$arrfeatposts = get_featured_posts_id();
?>
</div>
</div>
<?php }
// end featured posts slider ?>
<div id="posts" class="<?php echo get_option('fh_posts_color'); ?>">
<?php
$odd_or_even = 'left';
query_posts(array('post__not_in' => $arrfeatposts));
?>
<?php if (have_posts ()) : ?>
<?php while (have_posts ()) : the_post(); ?>
<div <?php post_class($odd_or_even) ?> id="post-<?php the_ID(); ?>">
<?php $odd_or_even = ('left' == $odd_or_even) ? 'right' : 'left'; ?>
<div class="categorie">
<h3>
<?php
$categories = "";
foreach ((get_the_category()) as $category) {
$categories .= $category->cat_name . ", ";
}
$categories = substr($categories, 0, strlen($categories) - 2);
echo trimText($categories, 36);
?>
</h3>
<div class="icons"><a class="hide"><span class="hidden">hide</span></a></div>
</div>
<div class="min">
<div class="text">
<?php
if (has_post_thumbnail ()) {
?>
<div class="thumb_cont">
<a href="<?php the_permalink() ?>" class="thumb">
<?php
the_post_thumbnail();
?> <span class="hidden"> </span>
</a>
<a class="comments_balloon" href="<?php the_permalink() ?>#comments"><?php comments_number('0', '1', '%') ?></a> </div>
<?php } ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php echo trimText(the_title('', '', FALSE), 23); ?></a></h2>
<p><?php echo trimText(get_the_excerpt(), 160); ?></p>
</div>
</div>
<div class="more"><a href="<?php the_permalink() ?>">View More</a></div>
</div>
<?php endwhile;
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>
<a class="btnAllposts" href="<?php
echo get_pagelink_by_title('all posts');
?>">view more</a>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>
|