Hallo Leute,
auf der Autorseite habe ich derzeit die Übersicht meiner Artikel einmal mit dem ersten Artikel (mit <h1> gekennzeichnet) ohne Thumb und 3 mal mit Thumb (mit <h2> gekennzeichnet). Zwischen den beiden Ansichten habe ich einen Slider welcher aus einer bestimmten Kategorie Artikel zieht eingebaut.
Ziel ist es die unteren 3 Artikel mit Thumb aus 3 verschiedenen Kategorien zu ziehen und nicht wie bisher die Artikel von mir als Autor auszugeben. Über jeder dieser 3 Artikel möchte ich die Kategorienamen manuell dazuschreiben.
zur Seite: http://critch.de/blog/author/critch/
Ich sitz schon seit Ewigkeiten dadran - hat mir einer eine Lösung? :cry:
Hier der Auszug aus dem aktuellen loop
<?php
/* The loop */
/* Fetch admin options. */
global $options;
foreach ($options as $value) {
if(isset($value['id']) && isset ($value['std']))
if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] );}
}
if ( !have_posts() ) : ?>
<div id="post-0" <?php post_class(); ?>>
<h2><?php _e( 'Nichts gefunden', 'volt' ); ?></h2>
<p><?php _e( 'Ihre Suche ergab leider keinen Treffer in der Datenbank...', 'volt' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .post-0 -->
<?php endif;
$count = 0;
while ( have_posts() ) : the_post();
$count++;
if ( has_post_thumbnail()) {
$img_src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '');
$img = $img_src[0];
}
else $img = '';
if( $count <= 1 ) { ?>
<div id="post-<?php the_ID();?>" <?php post_class('entry entry-archives clearfix'); ?> >
<?php if( $img ) { ?>
<?php } // Has image ?>
<center><h1 class="entry_title"><span style="font-size:28px; line-height:1.12em; color:white; background:black"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf( esc_attr__( '%s', 'volt' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></span></h1></center>
<p><?php echo short(get_the_excerpt(), 230); ?></p>
<?php if($vlt_hide_post_meta != 'true' ) { ?>
<center><h3><?php if ( function_exists('show_nivo_slider') ) { show_nivo_slider(); } ?></h3></center>
<?php } ?>
</div><!-- .entry -->
<?php } // If count <= 1
else { ?>
<div id="post-<?php the_ID();?>" <?php post_class('entry clearfix'); ?> >
<?php if($img) { ?>
<div class="thumb_medium">
<img src="<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php echo $img; ?>&w=140&h=135&zc=1&q=100" alt="<?php the_title(); ?>"/>
</div><!-- .thumb_medium -->
<?php } // If has image ?>
<div class="post_content <?php if($img == '') echo('pc_full'); ?>">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<p><?php echo short(get_the_excerpt(), 140); ?></p>
<?php if($vlt_hide_post_meta != 'true' ) { ?>
<div class="meta-box"><?php volt_small_meta(); ?></div>
<?php } ?>
</div><!-- .post_content -->
</div><!-- .entry -->
<?php } // Count > 1
comments_template( '', true );
endwhile; // End the loop
if ( $wp_query->max_num_pages > 1 ) :?>
<?php if ( function_exists( 'wp_pagenavi' ) ) wp_pagenavi();
else {?>
<center><img src="http://critch.de/blog/wp-content/uploads/2012/10/blogabo.gif"></center>
<?php }
endif; ?>
Alles anzeigen