Forums

Combine pages and posts in one menu (2 posts)

  1. aleks77
    Member
    Posted 2 years ago #

    Hi,

    I am wondering whether, and how, it would be possible to combine pages with sub-pages as well as categories, containing posts, into one menu. I want to create a language site, which is mainly built on static pages, but I also want to create a blog-like section, which will contain various articles. I am thinking of one of the following:

    - Using the pages menu as the main menu, mostly containing static pages and sub-pages. But when it comes to posts, I would need to create pages and sub-pages to be displayed in the menu, which are re-directed to the category, containing the posts.

    Is there an easy way of achieving this? Any other alternatives are appreciated.

    Thanks.

  2. scribu
    Member
    Posted 2 years ago #

    It's as easy as:

    <ul>
    <?php wp_list_pages(); ?>
    <?php wp_list_categories(); ?>
    </ul>

    To control the menu order, though, you will have to use absolute positioning via CSS.

Topic Closed

This topic has been closed to new replies.

About this Topic