Hallo leute.
Ich brauche dringen eure meisterliche hilfe.
Ich benutze dieses MAGAZINE Theme: WPshower-Sight
Das ist meine seite:
Link
Ich wollte den loop verändern da ich die neuesten zwei artikel immer mit einem größere artikelbild versehen will.
Der rest der artikel soll normal angezeigt werden.
Nach 6std arbeit hat das auch geklappt nur ist der loop nun unedlich.
Sehr schön. Hahahah.
Zweites Manko der schöne switch button der von untereinander auf gridview umstellt funktioniert auch nicht mehr.
Kann mir jemand helfen?
Anbei der code.
Besten dank euch schon mal.
PHP
<?php get_header(); ?>
<div class="content-title">
Latest entries
<a href="javascript: void(0);" id="mode"<?php if ($_COOKIE['mode'] == 'grid') echo ' class="flip"'; ?>></a>
</div>
<?php query_posts(array(
'paged' => $paged,
)
); ?>
<?php $top_query = new WP_Query('showposts=2'); ///////LOOP 01 GROßE THUMBS ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); $first_post = $post->ID; ?>
<?php if ( have_posts() ) : ?>
<div id="loop" class="<?php if ($_COOKIE['mode'] == 'grid') echo 'grid'; else echo 'list'; ?> clear">
<div <?php post_class('post clear'); ?> id="post_<?php the_ID(); ?>">
<?php if ( has_post_thumbnail() ) :?>
<?php endif; ?>
<div class="post-category"><?php the_category(' / '); ?></div>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="post-meta">by <span class="post-author"><a
href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span>
on <span
class="post-date"><?php the_time(__('M j, Y')) ?></span> <em>• </em><?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed')); ?> <?php edit_post_link( __( 'Edit entry'), '<em>• </em>'); ?>
</div>
<?php if ( has_post_thumbnail() ) echo '<a href="'.get_permalink().'">'.get_the_post_thumbnail($post->ID, 'bigthumb',
array(
'alt' => trim(strip_tags( $post->post_title )),
'title' => trim(strip_tags( $post->post_title )),
)).'</a>'; ?>
<div class="post-content"><?php if (function_exists('smart_excerpt')) smart_excerpt(get_the_excerpt(), 55); ?></div>
</div>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php query_posts('showposts=9'); ///////LOOP 02 NORMALE THUMBS ?>
<?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?>
<?php if ( have_posts() ) : ?>
<div id="loop" class="<?php if ($_COOKIE['mode'] == 'grid') echo 'grid'; else echo 'list'; ?> clear">
<?php while ( have_posts() ) : the_post(); ?>
<div <?php post_class('post clear'); ?> id="post_<?php the_ID(); ?>">
<?php if ( has_post_thumbnail() ) :?>
<a href="<?php the_permalink() ?>" class="thumb"><?php the_post_thumbnail('thumbnail', array(
'alt' => trim(strip_tags( $post->post_title )),
'title' => trim(strip_tags( $post->post_title )),
)); ?></a>
<?php endif; ?>
<div class="post-category"><?php the_category(' / '); ?></div>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="post-meta">by <span class="post-author"><a
href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span>
on <span
class="post-date"><?php the_time(__('M j, Y')) ?></span> <em>• </em><?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed')); ?> <?php edit_post_link( __( 'Edit entry'), '<em>• </em>'); ?>
</div>
<div class="post-content"><?php if (function_exists('smart_excerpt')) smart_excerpt(get_the_excerpt(), 55); ?></div>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
<?php endif; endwhile; ?>
<?php wp_reset_query(); ?>
<?php get_template_part('pagination'); ?>
<?php get_footer(); ?>
Alles anzeigen