• I’m using the Blix theme with WordPress 1.5.1 and I just have a simple question regarding the links code…

    How, if I have link categories, do I get them to display by category instead of one big looooong list?

    Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Umm – Sorry – the newbie here so beware.
    I dont follow. If you use wp_list_cats you can turn cats on /off, arrange em etc to what you want. If you have a giant list of cats in your sidebar then to me it seems that some kinda “organisation” of cats is needed so its not unweildy – maybe set some up as parents and child and hide the chilren?
    Im sorry if Im off track – but the question doesnt give much (to me) 🙂
    The alternative is if you dont want to break up the list is a pseudo directory?
    Or – you gotta get coding and use some nifty css dropdown stuff on parent /child etc ?
    This sounds like an issue of arranging data to present in an intuitive way.

    The list tags may need altering. The number is brackets is the Cat ID

    <ul>
    <li id="here">Here
    <ul><?php wp_get_links(11); ?></ul>
    </li>

    The <?php wp_get_links(11); ?> is one way though.

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

    If I understand you, you are not discussing categories, but having multiple categories for links, ie blogroll, hot chicks, etc.
    Then check your sidebar and make sure you are using the get_links_list tag

    Thread Starter Sandman

    (@sandman)

    Thanks all…it didn’t have to do with post categories, but rather with the link categories. I wanted my links list broken down by category (friends, regular reads, not so regualr reads, etc.) and listed like that. Well, it had to do with how they were called using the WP get_links function.

    Thanks for the link to the codex, it helped me figure it out and I’ve now got a list of 7 random links on my index page and a whole page for all of my links — which is now broken down by category and automatically updates if I add links into any one category.

    Thanks a million! And thanks to Sebastian for such an awesome theme for people like me — who don’t have the time or skills to make such a clean theme!

    http://godverbs.com/
    http://godverbs.com/links/

    Anyone find a solution to getting the Links and their Categories on the Sidebar?

    Thread Starter Sandman

    (@sandman)

    Halden, here is what I did:

    After being referred to the Codex (codex.wordpress.org) I figured out a little bit about the code used to “call the links” to the sidebar.

    I went with a list of 7 links, selected at random and placed on the side bar. Then, I created a links page that calls the links by category.

    So I have links for blogs I read all of the time, sometimes, blogs of friends, etc. and this is how I did it:

    http://godverbs.com/links.txt

    1 is the link category ID, the next 3 items are what to before the link, after the link, and between the links, show images, the links’ order, show description, show rating, limit, show updated.

    Just repeat it for each category and change the category ID.

    For more info, go here:

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

    you can use a DIV layer for you problwm

    Get it from mysql

      <li id=”here”>Here
      <?php wp_get_links(11); ?>

    Just repeat it for each category and change the category ID.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blix and Links’ is closed to new replies.