Forums

Page order ; can't find sidebar.php (9 posts)

  1. Kodiak3000
    Member
    Posted 3 years ago #

    I'm trying to get my pages into a specific order. There's a mechanism in Manage | Pages that lets me assign an order number to each page, but it doesn't affect the order on the actual site. I've searched the forum, and others who have had this problem have been told to edit their sidebar.php file.

    I have two problems with this: One is that I'm not totally sure that I'll be using the theme I currently have running - will I have to do it again if I change themes?

    The second is that I can't find a file called sidebar.php to edit. Is there a new structure? I'm running version 2.0.2

    Thanks in advance!

  2. whooami
    Member
    Posted 3 years ago #

    "will I have to do it again if I change themes?"

    Yes.

    "I can't find a file called sidebar.php to edit"

    sidebar.php will be located inside wp-content/themes/default/, assuming you are using the default kubrik theme.

  3. Kodiak3000
    Member
    Posted 3 years ago #

    Ah, well I'm not using that theme. That may be why they won't reorder...

    Any other ideas how I might do it?

  4. Kafkaesqui
    Moderator
    Posted 3 years ago #

    Well, you could tell us what theme you're using. Then someone might be able to explain where to find wp_list_pages() in it.

  5. whooami
    Member
    Posted 3 years ago #

    Kafkaesqui, what??!! You mean your mind reading skills arent up to the task???

    /me runs off to grab the crystal ball and the dousing rod.

  6. Kafkaesqui
    Moderator
    Posted 3 years ago #

    I gave up mind reading for Lent.

  7. Kodiak3000
    Member
    Posted 3 years ago #

    I'm using Simple Green at the moment, but as I explained, that's not set in stone, so I need a way to do this that won't require me to change it every time I try a new theme.

  8. Kodiak3000
    Member
    Posted 3 years ago #

    Okay, I found that and managed to get the parameters the way I want them, the style is no longer applied - i.e. the pretty link style and hovers are gone, leaving just bare links. I'd like the style the way it was; any idea why changing
    <?php wp_list_pages(); ?>

    to

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

    would do that?

    The Meta section has retained the style.

    I've just been playing around with this, and found that it's the &title_li=' part of the arguement that does this. If I take that out, the style is fine. If I put that in, and take out the other part, the style disappears.

    Thanks.

  9. sgtbenc
    Member
    Posted 3 years ago #

    I have the same problem (It doesn't go in any order except alphabetical), but I am using the default theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags