• kattheleopardess

    (@kattheleopardess)


    How does one order the link categories. Right now my “Email” Link Catgory is first and my “Internal Links” Link Category is second. How do I control the order of my link categories so that “Internal Links” is listed first and then “Email”?

Viewing 9 replies - 1 through 9 (of 9 total)
  • You could call each link category in the order you want by link category ID.

    <?php wp_get_links(1); ?>

    Where 1 would be the link cat ID you want.

    You just use the code more than once.

    IE <h2>Links</h2>
    <h3>Internal Links</h3>
    <?php wp_get_links(2); ?>
    <h3>Email Links</h3>
    <?php wp_get_links(1); ?>

    Thread Starter kattheleopardess

    (@kattheleopardess)

    And where would I need to put that code?

    Thread Starter kattheleopardess

    (@kattheleopardess)

    Okay…opened up the links.php section. It looks like this:

    <div id=”content” class=”widecolumn”>

    <h2>Hookups</h2>

      <?php get_links_list(1); ?>

    </div>

    Still doesnt work.

    I’m not sure what site you are using this on. The link in your profile is to a site that doesn’t appear to be using WP in the traditional sense. (If at all). So it’s hard to see what is happening, and what to suggest to fix it.

    spencerp

    (@spencerp)

    EDIT: Sorry miklb, was writing it up while you posted.. =P

    I’m not sure if these screenshots of my examples will help you or not, but here they are:

    http://www.vindictivebastard.net/images2/sidlinkcat.gif

    http://www.vindictivebastard.net/images2/linkcatmanager.gif

    I had used this code for them, like you see in the first screenshot. <?php get_links(1); ?>

    Not sure if that’s much different or not, but I hope this helps.

    spencerp

    Thread Starter kattheleopardess

    (@kattheleopardess)

    SpencerP

    Which page is this done in?

    Miklb

    http://www.ladyleopardess.com is the main site. However I have my blog here:

    http://www.ladyleopardess.com/llcom-news/

    Im keeing it hidden for now until I can get my wordpress to look close to http://www.ladyleopardess.com/home.shtml

    -Kat

    spencerp

    (@spencerp)

    KattheLeopardess, it depends on what theme you’re using or whatever… usually it’s located in the sidebar.php file. But you mentioned above about the links.php file, so I’m not really sure then, what and how your theme is done up..

    But yeah..it’s usually in the sidebar.php file.. =)

    spencerp

    Sidebar.php is correct. And to be sure, the links are being added to the Links Manager via the dashboard?

    Is there a way to retrieve the category name when using get_links ?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Link Categories’ is closed to new replies.