• Hi all,
    Sorry if this is a lame question. I have multiple link categories on my site, and each has many many links. I’d like to have pages which display each link category separately. I’ve upgraded to 2.0 but haven’t installed any of the hacks which let me put code in the actual entries.

    I have a plugin installed which allows me to have one page which uses a dropdown to select and display links by category, which is great, but I’d rather separate them out by pages so each page can have its own link in the nav.

    I know there must be a way to do this either by manipulating the links page plugin I have (http://redalt.com/downloads/) or fiddling with custom fields, but my brain ain’t getting where it needs to go to figure that out.

    I don’t want to have to tie this in any way to my templates, as that’s burned me in the past.

    It seems so simple that someone else must have already done this… but I can’t find anything. Can anyone out there point me in the right direction? Am I making any sense? 🙂

    Thank you!

    M.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Off hand I’d imagine a fairly easy way to accomplish this is to set up each page so it has the same name as a link category, then create a custom Page template which, instead of the typical content and such in The Loop, it has this code:

    <?php
    $linkcat = $post->post_title;
    <?php wp_get_linksbyname("$linkcat");
    ?>

    Finally, assign the template to each Page. Info on wp_get_linksbyname():

    http://codex.wordpress.org/Template_Tags/wp_get_linksbyname

    It’s a really strange thing with link categories .
    It’s certainly a good thing that you may categorize your links. After all not everything gets into your Blogroll.

    As for presentation, you may sort links after
    Name,ID,URL,Rating,Owner,Random

    Not the most obvious – after Category!
    I would have thought that this was the main reason for having link categories.

    I answered the question of separating the Blogroll and other links for the sidebar in another thread.

    My suggestion ( hackish ) was to create two users, make them owners of “Blogroll” and “Other links” and then present them ordered by Owner.

    Please correct me if I’m wrong!

    Well, maybe I can find the solution here:
    http://codex.wordpress.org/Template_Tags/get_links
    but I still think this order should be selectable in the Links Manager.

    Again: I might be wrong.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display links by category on their own page’ is closed to new replies.