WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Link categories in Sidebar (3 posts)

  1. posiesplace
    Member
    Posted 8 years ago #

    At the moment I have the following code in my side bar which pulls all of my links and puts them into a list on my sidebar:

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php get_links_list(); }?>

    Ideally I would like to split the links into the Link categories as they are displayed in my admin page with the names of these link categories displayed as <h2>.

    Can someone please advise me how I can do this?

  2. Chris_K
    Member
    Posted 8 years ago #

    The reference: http://codex.wordpress.org/Template_Tags/get_links_list

    At first glance, seems like you just want to add 'id' as a parm.

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

  3. posiesplace
    Member
    Posted 8 years ago #

    Brilliant!!!! Worked perfectly!!

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic