WordPress.org

Support

Support » How-To and Troubleshooting » Reversing position of links

Reversing position of links

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    @esmi

    Forum Moderator

    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');
    ?>

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reversing position of links’ is closed to new replies.
Skip to toolbar