Forums

How to change the order of items at r_sidebar (8 posts)

  1. cocotu
    Member
    Posted 1 year ago #

    #

    I want to change the order the menu appears on the right side bar: http://www.casareggaeton.com

    Currently:

    Recent Entries
    Radio Reggaeton
    Dona Ahora! Ayuda

    I would like to re-position to:

    Radio Reggaeton
    Dona Ahora! Ayuda
    Recent Entries

    I'm able to see the location of Recent Entries, but not the others. I'm looking at r_sidebar.php:
    <h2>Recent Entries</h2>

    <?php query_posts('showposts=5'); ?>
    * <?php if (have_posts()) : while (have_posts()) : the_post(); ?> "><?php the_title() ?><span class="recent_date"><?php the_time('n.j') ?></span>

    <?php endwhile; endif; ?>
    * /archives" title="Visit the archives!">Visit the archives for more!

    <?php if (function_exists('get_flickrrss')) { ?>
    <li class="widget">
    <h2><span class="flickr_blue">Flick</span><span class="flickr_pink">r</span></h2>
    <ul class="flickr_stream">
    <?php get_flickrrss(); ?>

    <?php } ?>
    <?php get_links_list('id'); ?>
    <?php endif; ?>

    Where are:?
    Radio Reggaeton
    Dona Ahora! Ayuda

    thanks.

  2. Otto42
    Moderator
    Posted 1 year ago #

    Both of those are displayed by your get_links_list('id'); statement. The 'id' is what it's sorting by.

    Change the 'id' to 'name' to have it put them in alphabetical order.

  3. cocotu
    Member
    Posted 1 year ago #

    so you mean to replace 'id' with 'name' and I should be able to move things around? I'm trying it right now....

  4. cocotu
    Member
    Posted 1 year ago #

    I don't quite understand Otto42. I made the change and still same results. thanks

  5. Otto42
    Moderator
    Posted 1 year ago #

    No, you can't just "move things around". That will change the sort order of those two things.

    If you sort by name, then "Radio Reggaeton" comes after "Dona Ahora! Ayuda". D before R.

    You cannot manually sort them into any order you want.

  6. cocotu
    Member
    Posted 1 year ago #

    this is the order I want:

    Radio Reggaeton
    Dona Ahora! Ayuda
    Recent Entries

    I made that change shown in bold below and still nothing:
    <div id="sidebar">
    <ul class="sidebar_list">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(2)) : ?>
    <li class="widget">
    <h2>Search It!</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <li class="widget">
    <h2>Recent Entries</h2>

    <?php if (function_exists('get_flickrrss')) { ?>
    <li class="widget">
    <h2><span class="flickr_blue">Flick</span><span class="flickr_pink">r</span></h2>
    <ul class="flickr_stream">
    <?php get_flickrrss(); ?>

    <?php } ?>
    <?php get_links_list('name'); ?>
    <?php endif; ?>

    </div>

    Thanks Otto42.

  7. Otto42
    Moderator
    Posted 1 year ago #

    Ah, you wanted to put them above the recent entries.

    Well, in that case, just move the <?php get_links_list('id'); ?> up above the <h2>Recent Entries</h2>.

  8. cocotu
    Member
    Posted 1 year ago #

    thanks, that is all I wanted! it works.

Topic Closed

This topic has been closed to new replies.

About this Topic