danke für die prompte antwort.
ich sag mal noch dazu das ich noch ein absoluter wp newbie bin.
ich hab jetzt Wie kann ich mein Theme Widget-fähig machen? « WordPress Deutschland FAQ befolgt.
code 1 am anfang in die functions.php eingefügt
code 2 am anfang in die sidebar.php eingefügt
code 3 direkt unter code 2 in die sidebar.php eingefügt
jetzt is alles durcheinander^^
hab mal etwas getestet, aber finde meinen fehler nicht.
die originale sidebar soll auch erhalten bleiben.
themes function
<?php
if ( function_exists('register_sidebar') )
register_sidebar();
?>
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array('name'=>'Sidebar'));
?>
sidebar
<ul>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : endif; ?>
</ul>
<div id="sidebar">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar 1') ) : else : ?>
<li>
<h2>Pages</h2>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
</li>
<?php wp_list_categories('orderby=name&show_count=0&title_li=<h2>Categories</h2>'); ?>
<li>
<h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly&limit=12'); ?>
</ul>
</li>
<li>
<h2>Blogroll</h2>
<ul>
<?php get_links(-1, '<li>', '</li>', 'between', FALSE, 'name', FALSE, FALSE, -1, FALSE); ?>
</ul>
</li>
<?php endif; ?>
<li>
<h2>Meta</h2>
<ul>
<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<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><a href="http://www.wpthemesfree.com/" title="Wordpress Themes">Wordpress Themes</a></li>
<?php wp_meta(); ?>
</ul>
</li>
</ul>
</div>
Alles anzeigen