WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How can I put my pages in my sidebar? (5 posts)

  1. Megagents
    Member
    Posted 6 years ago #

    I've tried a few experiments on my own but nothing works.

  2. triffid
    Member
    Posted 6 years ago #

    Do you mean the actual content of your pages?
    If so you can use the Improved Include Page plugin.
    If you just want a list of your pages you can use the wp_list_pages function

  3. Megagents
    Member
    Posted 6 years ago #

    I used this code

    <?php
    wp_list_pages('sort_column=menu_order&title_li='); ?>

    it works just like I wanted it to, the pages appear in the sidebar but they still appear in the navigation bar, is there something that can make it so they just appear in the sidebar?

  4. triffid
    Member
    Posted 6 years ago #

    It depends on your template. But, you'll probably find a similar piece of code in your navigation bar php file (or in 'header.php') which you can remove.

  5. Megagents
    Member
    Posted 6 years ago #

    Yup, turns out I was deleting <div> during my 'experiments' and that's why my site would get scrambled, now I have it all under control, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic