Danke für diese Info ... wow ... *gesucht hab*.
Ich hab das Skript, welches den kompletten Inhalt der Beiträge anzeigt, für mich so abgeändert, daß nur der Beitrags-Titel mit Link und die Blog-Url aufgezählt wird. Siehe Indexseite auf Erwachen.com und dort unter "Letzte Beiträge".
Hier der abgeänderte Code:
PHP
<div class="recent-posts">
<p style="color:grey; font-weight: bold; text-align: left;">Letzte Beiträge:
<ul>
<?php
$blogs = get_last_updated();
foreach ($blogs as $blog) :
// we need _posts and _options tables for this to work
$blogOptionsTable = "wp_".$blog['blog_id']."_options";
$blogPostsTable = "wp_".$blog['blog_id']."_posts";
// we fetch the blog name
$opt2 = $wpdb->get_col("SELECT option_value FROM $blogOptionsTable WHERE option_name='blogname'");
// we fetch the latest post
$opt3 = $wpdb->get_row("SELECT * FROM $blogPostsTable WHERE post_status='publish' AND post_type='post' ORDER BY post_date DESC LIMIT 0,1");
// sometimes the guid is missing, so just use blog url
if (trim($opt3->guid)) {
$mypostlink = trim($opt3->guid);
} else {
$mypostlink = 'http://'.trim($blog['domain']);
}
$myposttitle = $opt3->post_title;
$mypostdetails = '<small> ( <a href="http://'.trim($blog['domain']).'">'.trim($blog['domain']).'</a> )</small>';
print '<li><a style="color: rgb(153, 0, 0);" href="'.$mypostlink.'">'.$myposttitle.'</a> '.$mypostdetails.'</li>';
endforeach;
?>
</ul>
</p>
</div>
Alles anzeigen
... kann praktisch 1:1 übernommen werden - beliebig in der "home.php" plazieren (oder ggf. in anderem Template ...).
Besten Gruß ;-)
Ed