Hallo alchymyth,
vielen Dank, für die schnelle Antwort!!! Das PHP-Bild wird plötzlich erschreckend klar! wenn man sieht, dass die Zeilen auf andere Dateien verweisen können!.... Aber irgendwie kriege ich es trotzdem nicht auf die Reihe :-(
Bis jetzt wirtschafte ich an diesen dummen Code und wird mehr tot als Kot......!
Ich habe den Code mal angehängt, ein "if" ist schon in der Nähe von "[COLOR=#333333]the_excerpt()" aber ich weiß nicht, was es sonst für Abfragen geben sollte. Ich habe rumprobiert, ausgetauscht, mit anderen Code-Schnipseln, von funktionierenden Themes, aber, geht, einfach, nicht.
Ist etwas üppig, die Sache und ich hoffe, ich habe den richtigen Teil dabei:
<?php /* How to display posts of the Aside format. The asides category is the old way. */ ?>
<?php elseif((function_exists('get_post_format') && 'aside' == get_post_format($post->ID)) || in_category(_x('asides', 'asides category slug', 'grey-opaque'))) : ?> <?php greyopaque_the_infobox(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php echo join(' ', get_post_class($var_sClassFirst)); ?>">
<?php if(is_archive() || is_search()) : // Display excerpts for archives and search. ?> <div class="entry-summary"> <?php if(function_exists('has_post_thumbnail') && has_post_thumbnail()) { the_post_thumbnail('thumbnail-loop', array( 'class' => 'alignleft post_thumbnail' )); }
the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content clearfix"> <?php if(function_exists('has_post_thumbnail') && has_post_thumbnail()) { the_post_thumbnail('thumbnail-loop', array( 'class' => 'alignleft post_thumbnail' )); }
if(function_exists('greyopaque_the_content')) { greyopaque_the_content(__('Continue reading <span class="meta-nav">→</span>', 'grey-opaque')); } else { the_content(__('Continue reading <span class="meta-nav">→</span>', 'grey-opaque')); } ?> </div><!-- .entry-content clearfix --> <?php endif; ?> </div><!-- #post-## -->
edit:
noch mal so:
[/COLOR]<?php /* How to display posts of the Aside format. The asides category is the old way. */ ?>
<?php elseif((function_exists('get_post_format') && 'aside' == get_post_format($post->ID)) || in_category(_x('asides', 'asides category slug', 'grey-opaque'))) : ?>
<?php greyopaque_the_infobox(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php echo join(' ', get_post_class($var_sClassFirst)); ?>">
<?php if(is_archive() || is_search()) : // Display excerpts for archives and search. ?>
<div class="entry-summary">
<?php
if(function_exists('has_post_thumbnail') && has_post_thumbnail()) {
the_post_thumbnail('thumbnail-loop', array(
'class' => 'alignleft post_thumbnail'
));
}
the_excerpt();
?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content clearfix">
<?php
if(function_exists('has_post_thumbnail') && has_post_thumbnail()) {
the_post_thumbnail('thumbnail-loop', array(
'class' => 'alignleft post_thumbnail'
));
}
if(function_exists('greyopaque_the_content')) {
greyopaque_the_content(__('Continue reading <span class="meta-nav">→</span>', 'grey-opaque'));
} else {
the_content(__('Continue reading <span class="meta-nav">→</span>', 'grey-opaque'));
}
?>
</div><!-- .entry-content clearfix -->
<?php endif; ?>
</div><!-- #post-## -->
[COLOR=#333333]
Alles anzeigen
Mit einem näheren Tipp, also, ich probiere gerne noch weiter, aber manchmal komme ich in die Verlegenheit zu glauben, ich bilde mich zurück, wenn ich durch die Zeile gaffe! Weil es funktioniert einfach nicht das, was ich WILL!
Aber die Farben sind schön [/COLOR];)
Ich hoffe, Du kannst mir helfen!