WordPress.org

Ready to get started?Download WordPress

Forums

Blix and Links (9 posts)

  1. Sandman
    Member
    Posted 9 years ago #

    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.

  2. Murry
    Member
    Posted 9 years ago #

    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.

  3. Mark (podz)
    Support Maven
    Posted 9 years ago #

    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.

  4. Michael Bishop

    Posted 9 years ago #

    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

  5. Sandman
    Member
    Posted 9 years ago #

    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/

  6. Halden
    Member
    Posted 9 years ago #

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

  7. Sandman
    Member
    Posted 9 years ago #

    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

  8. zebra
    Member
    Posted 8 years ago #

    you can use a DIV layer for you problwm

  9. symbol
    Member
    Posted 8 years ago #

    Get it from mysql

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags