Hallo ich habe ein Related Post Plugin was in seinem Erscheinungsbild so im Post aussieht:
[COLOR=Blue]Verwandte Artikel
[/COLOR][INDENT][COLOR=Blue]Buch 1
Buch 2[/COLOR]
[/INDENT][COLOR=Black]Das ist das Skript dazu:
[/COLOR]
PHP
*/
function related_posts ( $related_content ) {
if ( ! is_page () ) :
global $post;
$p = $post;
$categories = '';
foreach ( ( get_the_category () ) as $category ) :
$categories .= $categories . ',' . $category->cat_ID ;
endforeach;
$related = '<p><strong>Verwandte Artikel :</strong></p>' . "\r\n";
$related .= '<ul>' . "\r\n";
foreach ( ( get_posts ( 'numberposts=5&category=' . $categories . '&orderby=date&exclude=' . $post->ID ) ) as $post ) :
$related_links .= '<li><a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a></li>' . "\r\n";
endforeach;
if ( isset ( $related_links ) )
$related .= $related_links;
else
$related .= '<li>Keine weiteren Artikel</li>' . "\r\n";
$related .= '</ul><br />' . "\r\n";
$related_content = $related_content . "\r\n" . $related;
endif;
$post = $p;
return $related_content;
}
add_filter ( 'the_content' , 'related_posts' );
?>
Alles anzeigen
Was muss ich ändern, damit die Zeilen nicht mehr eingerückt sind,
es soll also so aussehen:
[COLOR=Blue]Verwandte Artikel
[/COLOR]
[COLOR=Blue]Buch 1[/COLOR]
[COLOR=Blue] Buch 2[/COLOR]
[COLOR=Black]Vielen Dank für Eure Hilfe,
teatime:smile:
[/COLOR]