WordPress.org

Ready to get started?Download WordPress

Forums

Merging menus (3 posts)

  1. smartmouse
    Member
    Posted 8 years ago #

    Is it possible to show Meta menu and Pages menu merged in one unique menu?

  2. Samuel B
    moderator
    Posted 8 years ago #

    Sure. Look in sidebar.php for something like :
    <div class="sb-latest"><h2><?php _e('Latest'); ?></h2>

    Then take what Meta data you want and add to the bottom of the above code.

    Everyone's is a bit different but should be similar to this:

    <?php if ( (is_home()) or (is_search() or (is_404()) or ($notfound == '1')) or ( (is_archive()) && (!is_author()) ) ) { ?>
    <div class="sb-latest"><h2><?php _e('Latest'); ?></h2>
    <span class="metalink"><a href="<?php bloginfo('rss2_url'); ?>" title="RSS Feed for Blog Entries" class="feedlink"><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" alt="RSS" /></a></span>
    <ul>
    <?php wp_get_archives('type=postbypost&limit=10'); ?>
    </ul>
    <ul>
    <li><?php wp_loginout(); ?></li>
    <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li></div>
    <?php } ?>

  3. smartmouse
    Member
    Posted 8 years ago #

    Here is the content of my category.php file:
    http://pastebin.com/627795

    I cannot understand how to edit it.
    Can oyu help me please?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.