• 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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Combine pages and posts in one menu’ is closed to new replies.