Hi @all,
ich habe ein kleines Problem mit dem Sitemap Generator.
Und zwar habe ich vor, den Link für die Sitemap in das Meta-Widget meiner Seite zu legen.
So, es ist alles installiert und nun steht unter Optionen, ich sollte folgende Zeile da einfügen wo ich den Link brauche:
Diesen Code habe ich in der Widgets.php eingefügt, das sieht jetzt so aus:
function widget_meta($args) {
extract($args);
$options = get_option('widget_meta');
$title = empty($options['title']) ? __('Meta') : $options['title'];
?>
<?php echo $before_widget; ?>
<?php echo $before_title . $title . $after_title; ?>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS 2.0'); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><!-- ddsitemapgen --></li>
<li><a href="http://wordpress.com/" title="<?php _e('Powered by Wordpress, state-of-the-art semantic personal publishing platform.'); ?>">WordPress.com</a></li>
<?php wp_meta(); ?>
Alles anzeigen
Allerdings zeigt er mir jetzt an der Stelle nur eine Leerzeile. Weis jemand ob ich in der Widget Datei noch mehr einfügen muss??
WP-Version: 2
Link: Privatfitness.info
Danke schon mal für eure Hilfe,
Greetz
Chris