WordPress.org

Ready to get started?Download WordPress

Forums

change blogroll (4 posts)

  1. rootin
    Member
    Posted 7 years ago #

    hello,

    i want to show only, last 5 added link in blogroll, don t show all links.how can i do it?

  2. MichaelH
    Member
    Posted 7 years ago #

    Didn't test this but you might try the template tag, wp_list_bookmarks, with the orderby, order, and limit parameters.

    Something like:

    wp_list_bookmarks('orderby=updated&order=DESC&limit=5');

  3. rootin
    Member
    Posted 7 years ago #

    thanks,i try and do it.but can i do it same change in this code
    get_links('0','', ' ,', '', 0,'name', 0, 0, -1, 0,)

  4. MichaelH
    Member
    Posted 7 years ago #

    For get_links you would want to set the limit to 5 as you asked for the last 5 added. In either choice, you can sort by 'updated' which is as close as your are going to get to 'added'.

    See Template_Tags/get_links

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags