WordPress.org

Ready to get started?Download WordPress

Forums

Reversing position of links (3 posts)

  1. susankasher
    Member
    Posted 5 years ago #

    On My Link Categories I have one category up top: Blogroll and created another category called Great Artisits below it. But I want to reverse the categories. Does anyone know how to do that?

    Also, within the category Great ARtists, I'd like to order them in a certain way, not alphabetically but by who I think the greatest of them are. Does anyone know how to do that?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    To simply reverse the order, use:

    <?php wp_list_bookmarks('orderby=name&order=DESC'); ?>

    To have different ordering, you'll need to use the template tag twice - one per link category:

    <?php
    wp_list_bookmarks('category_name=Great Artists&orderby=rating');
    wp_list_bookmarks('category_name=Blogroll');
    ?>
  3. Shane G
    Member
    Posted 5 years ago #

    Hi,

    find category-template.php file under wp-includes folder and find orderby=desc or orderby_asc and change it upon your requirement..

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic