Hallo,
ich habe ein Problem, dass mich seit Stunden wahnsinnig macht. Ich nutze folgendes Theme:
Dort seht ihr ja über dem ersten Artikel dieses "Browse Categories" Teil/Box. Die würde ich gerne komplett löschen.
Die Index.php hat folgenden Code:
ZitatAlles anzeigen
<?php get_header(); ?>
<?php if(!is_paged()) { ?>
<div id="top" class="clearfloat">
</div>
<div id="middle" class="clearfloat">
<img src="<?php bloginfo('template_url'); ?>/images/category.png" class="clearfloat" alt="" />
<?php $display_categories = array(47,46,48,49,50); $i = 1;
foreach ($display_categories as $category) { ?><div id="cat-<?php echo $i; ?>" class="category" onclick="window.location.href='<?php echo get_category_link($category);?>'" >
<?php query_posts("showposts=1&cat=$category")?>
<?php if (is_category($category)) { ?>
<span class="cat_title"><?php single_cat_title(); ?></span>
<?php echo category_description($category); } ?>
</div>
<?php $i++; ?>
<?php } ?></div>
<?php } ?>
<div id="bottom" class="clearfloat">
<div id="front-list">
<?php
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-27,-28&paged=$page"); ?>
<?php while (have_posts()) : the_post();
$values = get_post_custom_values("Image");
?><div class="clearfloat">
<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
<div class="meta">[ <?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> <?php if(function_exists('the_views')) { ?>| <?php the_views(); } ?>]</div>
<div class="spoiler">
<?php if (has_post_thumbnail()) {
?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php
the_post_thumbnail('front-list',array('class'=>'front-list-thumb-wrapper', 'title'=>$title));
?>
</a>
<?php
} else
if (isset($values[0])){
?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php echo urlencode($values[0]); ?>&w=150&h=150&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="150" height="150" /></a>
<?php
} else {
?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/images/no-image.png&w=150&h=150&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="150" height="150" /></a>
<?php } ?><?php the_excerpt(); ?>
</div></div>
<?php endwhile; ?><div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { ?><div class="right"><?php next_posts_link('Next Page »') ?></div>
<div class="left"><?php previous_posts_link('« Previous Page') ?></div>
<?php } ?></div>
</div><?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Doch immer wenn ich den fett markierten Code in der Index.php lösche um diese Box wegzubekommen, kommt dieser Fehlercode im Browser:
Parse error: syntax error, unexpected $end in /www/blabla/blabla/wp-content/themes/theme/index.php on line 109
Egal was ich da auch lösche, es kommt immer dieser Fehler. Was kann ich tun?
Beste Grüße und vielen lieben Dank!