Hi,
ich benutze auf http://www.xn--gute-kinderbcher-uzb.de/ das Plugin GD Star Rating. Leider werden auf der Hauptindex-Seite Artikelbilder und Rating-Sternchen überlagert dargestellt, wenn sie eigentlich nebeneinander stehen sollten (ab Artikel 5 ist das der Fall).
Mit meinen schmalen Kenntnissen komme ich einfach nicht weiter: Liegt es an der index.php, sind irgendwelche CSS-Angaben schuld - oder liegt's vielleicht am Plugin?
Irgendjemand eine Idee?
Danke, Matti
Hier ein Auszug aus der index.php:
PHP
<div id="post" class="post clearfix">
<?php //save old query
$temp = $wp_query;
//clear $wp_query;
$wp_query= null;
//create a new instance
$wp_query = new WP_Query();
$wp_query->query('showposts=6&offset=4');
while ($wp_query->have_posts()) : $wp_query->the_post();
//get featured img
$feat_img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'grid-thumb');
?>
<article class="loop-entry clearfix">
<?php if($feat_img) { ?>
<a href="<?php the_permalink(' ') ?>" title="<?php the_title(); ?>" class="loop-entry-thumbnail"><img src="<?php echo $feat_img[0]; ?>" alt="<?php echo the_title(); ?>" /></a>
<?php } ?>
<?php $categories = get_the_category(); echo $categories[0]->cat_name; ?>
<?php wp_gdsr_render_article(10, false); ?>
<h2><a href="<?php the_permalink(' ') ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php
//show meta only on blog posts
if ( get_post_type() != 'page' || get_post_type() != 'portfolio') { ?>
<div class="loop-entry-meta">
<span class="awesome-icon-calendar"></span><?php _e('Am','surplus'); ?> <?php the_time('j'); ?> <?php the_time('M'); ?>, <?php the_time('Y'); ?>
<span class="awesome-icon-user"></span><?php _e('Von', 'surplus'); ?> <?php the_author_posts_link(); ?>
<span class="awesome-icon-comments"></span><?php _e('Mit', 'surplus'); ?> <?php comments_popup_link('0 Kommentaren', '1 Kommentar', '% Kommentaren'); ?>
</div>
<!-- /loop-entry-meta -->
<?php } ?>
<?php echo excerpt('20'); ?><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> mehr...</a>
</article>
<!-- loop-entry -->
<?php endwhile;
//clear again
$wp_query = null;
//reset $wp_query = $temp;?>
Alles anzeigen
Und hier ein bisschen CSS:
Code
.loop-entry{
margin-bottom: 25px;
padding-bottom: 25px;
border-bottom: 1px solid #ddd;
}
.loop-entry-thumbnail{
float: left;
margin-right: 25px;
}
.loop-entry h2{
margin: -5px 0 0;
font-size: 18px;
}
.loop-entry-meta{
color: #999;
font-size: 11px;
margin: 0 0 10px;
}
.loop-entry-meta span{
margin: 0 5px 0 12px;
font-size: 13px;
color: #666;
}
.loop-entry-meta span:first-child{
margin-left: 0;
}
Alles anzeigen