WordPress.org

Ready to get started?Download WordPress

Forums

A particular "Link Category" at the Top (2 posts)

  1. DuneBlog
    Member
    Posted 8 years ago #

    In WP v2.0.1 using "Relaxation Themes v2.0.2beta" I want to have a particular Link Category on the Top of the Blogroll list. WP comes with a list of Blogrolls (Links and Link Categories). I have added one more Link Category and assigned one Link to this ID (ID=2). As this Link Category is refering to one of my own sites I want to have this on Display on TOP of all other Link Categories. I guess I have to alter the Blogroll.php of my theme but I du not know what to add.

    Any Idea how to do this without tweaking "link.php" from WP?

    Here in short what is written in the "Blogroll.php" of my Theme:

    <li>
    <h2><?php _e('personal Links'); ?></h2>

    <ul>
    <?php get_links_list(); ?>
    </ul>
    </li>

    Many thanks in advance - DuneBlog

  2. DuneBlog
    Member
    Posted 8 years ago #

    [update] I have included into the blogroll.php following code to show the Link:

    <?php get_links('2', '
    <li>', '</li>
    ', '', FALSE, 'id', TRUE, TRUE, -1, TRUE); ?>

    So far so good. Only two points need to be adjusted:
    -1- I have to intend this Link to adjust it to the normal intend when displayed through link.php
    -2- I need now also to display the Category Name to this link.

    Any Idea? DuneBlog

Topic Closed

This topic has been closed to new replies.

About this Topic