Ich hab eine category.php erstellt da ich meinen "blog" full-width haben wollte, also ohne sidebar.
Bei meinem theme gab es keine category.php, keine archive.php usw. bedeutet meine "kategorien" werden von der index.php definiert?
ich hab also die index.php kopiert und eine neue php datei, die ich "category.php" genannt hab erstellt und das ganze in meinen theme ordner gepackt.
meine kategorien werden jetzt von meinem erstellten template bestimmt, das funktioniert schon mal, aber ich bekomme dauernd fehlermeldungen;
"Parse error: syntax error, unexpected T_IF, expecting T_STRING in /mnt/webc/12/89/52676589/htdocs/wordpress/wp-content/themes/aware/category.php on line 15"
Wenn ich line15 lösche, bekomme ich eine neue fehlermeldung..
Kann mir evtl. jemand helfen?
Hier mein "category.php" code:
<?php get_header(); ?>
<!-- Page Title
================================================== -->
<div class="container clearfix">
<div class="pagename sixteen columns fadeInUp animated">
<h3>
<?php wp_title("",true);
if(!wp_title("",false)) { echo bloginfo( 'description');} ?>
</h3>
</div>
</div>
<div class="clear"></div>
<!-- Page Content
================================================== -->
<div class="container clearfix fadeInUp animated">
<div class="eleven columns blogwrap">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="blogpost">
<div class="clear"></div> <!-- for stupid ie7 -->
<div class="one_sixth fulldetails">
<div class="darkbubble date">
<h3>
<?php the_time('d'); ?>
</h3>
<p>
<?php the_time('M'); ?>
<br />
<?php the_time('Y'); ?>
</p>
<div class="clear"></div>
</div>
<p class="smalldetails">
<a href=" <?php comments_link(); ?> ">
<?php comments_number( __('No Comments', 'framework'), __('One Comment', 'framework'), __('% Comments', 'framework') ); ?>
</a>
</p>
<p class="smalldetails">
<?php _e('In ', 'framework'); the_category('<br />'); ?>
</p>
<p class="smalldetails">
<?php _e('By ', 'framework'); the_author_link(); ?>
</p>
</div>
<div class="five_sixth column-last">
<h3 class="blogtitle">
<a href="<?php the_permalink(); ?>" title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>">
<?php the_title(); ?>
</a>
</h3>
<div class="mobiledetails">
<p>
<?php _e('On ', 'framework'); the_time('d'); ?>, <?php the_time('M'); ?> <?php the_time('Y'); ?> | <a href=" <?php comments_link(); ?> ">
<?php comments_number( __('No Comments', 'framework'), __('One Comment', 'framework'), __('% Comments', 'framework') ); ?>
</a> | <?php _e('In ', 'framework'); the_category(', '); ?> | <?php _e('By ', 'framework'); the_author_link(); ?>
</p>
</div>
<div class="featuredimage">
<?php /* if the post has a WP 2.9+ Thumbnail */
if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?>
<a title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('blog', array('class' => 'scale-with-grid')); /* post thumbnail settings configured in functions.php */ ?>
</a>
<?php endif; ?>
</div>
<?php the_content(__('Read more...', 'framework')); ?>
<p class="tags"><?php the_tags('Tags | ', ', ', '<br />'); ?></p>
<?php edit_post_link( __('Edit Post', 'framework'), '<div class="edit-post"><p>[', ']</p></div>' ); ?>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<?php endwhile; else :?>
<!-- Else nothing found -->
<h2>
<?php _e('Error 404 - Not found.', 'framework'); ?>
</h2>
<p>
<?php _e("Sorry, but you are looking for something that isn't here.", 'framework'); ?>
</p>
<!--BEGIN .navigation .page-navigation -->
<?php endif; ?>
<?php if ( function_exists('pp_has_pagination') ) : ?>
<?php if (pp_has_pagination()) : ?>
<div class="pagination_container">
<ul id="pagination">
<!-- the previous page -->
<?php pp_the_pagination(); if (pp_has_previous_page()) : ?>
<li class="previous"> <a href="<?php pp_the_previous_page_permalink(); ?>" class="prev">« Previous</a></li>
<?php else : ?>
<li class="previous-off">« Previous</li>
<?php endif; pp_rewind_pagination(); ?>
<!-- the page links -->
<?php while(pp_has_pagination()) : pp_the_pagination(); ?>
<?php if (pp_is_current_page()) : ?>
<li class="active">
<?php pp_the_page_num(); ?>
</li>
<?php else : ?>
<li><a href="<?php pp_the_page_permalink(); ?>">
<?php pp_the_page_num(); ?>
</a></li>
<?php endif; ?>
<?php endwhile; pp_rewind_pagination(); ?>
<!-- the next page -->
<?php pp_the_pagination(); if (pp_has_next_page()) : ?>
<li class="next"> <a href="<?php pp_the_next_page_permalink(); ?>">Next »</a></li>
<?php else : ?>
<li class="next-off">Next »</span>
<?php endif; pp_rewind_pagination(); ?>
</ul>
</div>
<?php endif; else: ?>
<div class="pagination_container">
<div class="alignleft">
<?php next_posts_link(__('← Older', 'framework')) ?>
</div>
<div class="alignright">
<?php previous_posts_link(__('Newer →', 'framework')) ?>
</div>
</div>
<?php endif;?>
</div>
<div class="clear"></div>
</div>
<?php get_footer(); ?>
Alles anzeigen