Bei meinem neuesten Projekt: LogoCreations habe ich folgendes Problem:
Ich habe im Footer Kategorien definiert, denen ich Logos zugeordnet habe. Wenn ich nun im Frontend eine Kategorie aufrufe, wird mir nur 1 Logo angezeigt + link: vorheriges Logo. Ich möchte aber, dass alle der Kategorie zugeordneten Thumbnails gelistet werden.
Bsp:
Alle Logos: 34 Artikel/ Logos
Computer: 6 Artikel/ Logos
Textil: 7 Artikel/ Logos
Auf der Supportseite des Themes wurde mir von einem Member der Tipp gegeben, doch zu überprüfen, dass jeder Kategorie mehr als 1 Thumb zugeordnet ist und falls nicht, das zu ändern.
Leider finde ich nicht den Passus, wo das zu ändern ist. Vielleicht kann mir jemand von Euch einen Tipp geben?
Das Theme ist FotoFolia
Hier ist die single.php, welche meines Erachtens die entscheidende ist:
ZitatAlles anzeigen<?php get_header(); ?>
<div class="featured single"><?php $horizontal = 'style="width: 62%;"'; ?>
<?php $opt_img_width = wptp_getopt('opt_img_width', 0); ?><?php if(have_posts()): while(have_posts()): the_post(); ?>
<?php if((wptp_has_img() AND (!is_blog_cat(wptp_getopt('blog_cat' , 0))) )): $image = mooz_image_predata($post->ID) ;
if($image['size']['w'] < $opt_img_width) {
$vertical_image_margin = 'margin-left: 10%';
} else {
$vertical_image_margin = '';
$legend_width = 'margin-left: 40px; width: 88%;';
}
$horizontal = 'style="width:'. ($image['size']['w'] + 45 ).'px; '. $vertical_image_margin .';"';?>
<div class="photo shadow-left imgborder" <?php if($image['size']['w'] < $opt_img_width) { echo 'style="margin-left: 10%"'; } else { echo 'style="margin-left: 30px"'; }?>>
<div class="shadow-right" >
<?php if(wptp_getopt('img_clickable', 0)): ?>
<a <?php wptp_getopt('img_class_rel'); ?> href="<?php echo $image['path']; ?>"><img src="<?php bloginfo('template_directory') ?>/scripts/timthumb.php?src=<?php echo $image['path'] ?>&w=<?php echo $image['size']['w']?>&h=<?php echo $image['size']['h'] ?>&zc=1" alt="<?php the_title() ?>" /></a>
<?php else: ?>
<img src="<?php bloginfo('template_directory') ?>/scripts/timthumb.php?src=<?php echo $image['path'] ?>&w=<?php echo $image['size']['w']?>&h=<?php echo $image['size']['h'] ?>&zc=1" alt="<?php the_title() ?>" />
<?php endif; ?>
</div>
</div>
<?php
$imgwidth = $image['size']['w'];
if ($imgwidth >= $opt_img_width) {
?>
<div id="photo-navigation" <?php echo $horizontal; ?>>
<div class="photo-alignleft"><?php previous_post_link('%link', wptp_getopt('nav_previous_value',0), wptp_getopt('nav_in_same_cat' , 0)); ?></div>
<div class="photo-alignright"><?php next_post_link('%link', wptp_getopt('nav_next_value',0), wptp_getopt('nav_in_same_cat' , 0)); ?></div>
</div>
<?php } ?><?php else: ?>
<?php if ((is_blog_cat(wptp_getopt('blog_cat' , 0))) OR in_category(wptp_getopt('blog_cat', 0))): ?>
<div id="blog-post">
<h2><?php the_title(); ?></h2>
<div id="blog-content">
<div id="post-tags">
</div>
<?php the_content(); ?>
</div>
<div id="after-post"></div>
<div id="single-navigation">
<div class="single-alignleft"><?php previous_post_link('%link', wptp_getopt('nav_previous_value',0), wptp_getopt('nav_in_same_cat' , 0)); ?></div>
<div class="single-alignright"><?php next_post_link('%link', wptp_getopt('nav_next_value',0), wptp_getopt('nav_in_same_cat' , 0)); ?></div>
<?php $is_blog_nav=true ?>
</div></div>
<div id="blog-widget">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<?php endif; ?>
</ul>
</div>
<?php else: ?>
<div id="blog-post">
<div id="com-blog-content">
<?php the_content(); ?>
</div>
</div>
<?php endif; ?>
<?php endif; ?><?php if(((wptp_has_img() AND ! (is_blog_cat(wptp_getopt('blog_cat' , 0)))) OR (! is_blog_cat(wptp_getopt('blog_cat' , 0)) ))): ?>
<div class="legend" style="<?php echo $legend_width; ?>" >
<h2><?php the_category(', '); ?></h2>
<h3><?php the_title(); ?></h3>
<?php $photographer = get_post_meta($post->ID, wptp_getopt('post_photographer_meta',0 ), true); ?>
<?php if(wptp_getopt('show_author', 0)): ?>
<div class="author"><em>by</em> <strong><?php wptp_getopt('author') ?></strong><?php if($photographer): ?> & Photo taken <em>by</em> <strong><?php echo $photographer; ?></strong><?php endif; ?></div>
<?php elseif ($photographer): ?>
<div class="author">
Photo taken <em>by</em> <strong><?php echo $photographer; ?></strong></div>
<?php endif; ?>
<div class="notes">
<div id="post-tags">
<?php if (wptp_getopt('show_photo_post_date',0)): ?><small>Date: <?php the_time('d.m.Y'); ?></small><?php endif; ?>
</div>
<?php $is_video_post = get_post_meta($post->ID, wptp_getopt('post_have_video_meta',0 ) , true); ?>
<?php if($is_video_post): ?>
<?php the_excerpt(); ?>
<?php elseif($is_blog_post): ?>
<?php the_content(); ?>
<?php else: ?>
<?php the_content(); ?>
<div class="exif-meta"><?php mooz_get_meta($image['id']) ?></div>
<?php endif; ?>
<div id="post-tags">
<small><?php the_tags(); ?></small>
</div>
</div>
<div id="after-post"></div></div> <!-- .legend -->
<?php endif; ?>
<?php if (!$is_blog_nav): ?>
<div id="photo-navigation" <?php echo $horizontal; ?>>
<div class="photo-alignleft"><?php previous_post_link('%link', wptp_getopt('nav_previous_value',0), wptp_getopt('nav_in_same_cat' , 0)); ?></div>
<div class="photo-alignright"><?php next_post_link('%link', wptp_getopt('nav_next_value',0), wptp_getopt('nav_in_same_cat' , 0)); ?></div>
</div>
<?php endif ?>
<?php endwhile; else: ?>
<h2>Sorry, no posts matched your criteria.</h2>
<?php endif; ?><div class="ffix"></div>
<?php if(wptp_getopt('comment', 0)) { ?>
<div id="comment-area">
<div class="comments">
<?php comments_template(); ?>
</div>
</div>
<?php } ?>
</div><!-- #featured -->
<div class="ffix"></div><?php get_footer(); ?>