Beispiel #1
0
function custom_nav_menu()
{
    if (function_exists('wp_nav_menu')) {
        wp_nav_menu(array('theme_location' => 'main-menu', 'container' => 'div', 'container_id' => 'menu', 'fallback_cb' => 'custom_page_menu'));
    } else {
        custom_page_menu();
    }
}
function menu_custom_2()
{
    ?>
			<ul id="nav">
				<li <?php 
    if (is_home()) {
        echo ' class="current-cat" ';
    }
    ?>
><a href="<?php 
    bloginfo('url');
    ?>
">Home</a></li>
				<?php 
    custom_cat_menu('exclude_hor_cat');
    ?>
				<?php 
    custom_page_menu('exclude_hor_pages');
    ?>
				<?php 
    custom_link_menu('exclude_hor_links');
    ?>
			</ul>
			<?php 
}