Hallo,
ich versuche folgendes auf der Startseite meiner Wordpress-Installation:
Artikel-Überschrift
Text
Links zu den 5 aktuellsten Artikeln der selben Kategorie
Zum Anzeigen nur der Überschriften habe ich hier folgenden Tipp bekommen:
[COLOR=#000000] [COLOR=#0000CC]<?php [/COLOR][COLOR=#006600]if ([/COLOR][COLOR=#0000CC]have_posts[/COLOR][COLOR=#006600]()) : [/COLOR][COLOR=#0000CC]?>
[/COLOR]
<ul class="headlines">
[COLOR=#0000CC]<?php [/COLOR][COLOR=#006600]while( [/COLOR][COLOR=#0000CC]have_posts[/COLOR][COLOR=#006600]() ) : [/COLOR][COLOR=#0000CC]the_post[/COLOR][COLOR=#006600](); [/COLOR][COLOR=#0000CC]?>[/COLOR]
[COLOR=#0000CC]<?php $category [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000CC]get_the_category[/COLOR][COLOR=#006600](); [/COLOR][COLOR=#0000CC]?>[/COLOR]
<li>
<a href="[COLOR=#0000CC]<?php [/COLOR][COLOR=#006600]echo [/COLOR][COLOR=#0000CC]get_category_link[/COLOR][COLOR=#006600]( [/COLOR][COLOR=#0000CC]$category[/COLOR][COLOR=#006600][[/COLOR][COLOR=#0000CC]0[/COLOR][COLOR=#006600]]->[/COLOR][COLOR=#0000CC]term_id [/COLOR][COLOR=#006600]); [/COLOR][COLOR=#0000CC]?>[/COLOR]">
[COLOR=#0000CC]<?php the_title[/COLOR][COLOR=#006600](); [/COLOR][COLOR=#0000CC]?>[/COLOR]
</a>
</li>
[COLOR=#0000CC]<?php [/COLOR][COLOR=#006600]endwhile; [/COLOR][COLOR=#0000CC]?>[/COLOR]
Wie kriege ich es jetzt hin, das vor der Auflistung der Überschriften der Artikel angezeigt wird?
Das ganze soll in etwas so aussehen wie bei Spiegel Online.
Vielen Dank schonmal!!!
[/COLOR]