Forums

show link categories names (8 posts)

  1. Anonymous
    Unregistered
    Posted 8 years ago #

    Hi!
    Is there a way to show the categories names in the 'links section' generated by wp-links on the blog main page?
    Like:
    Blogs
    blog1.com
    blog2.com
    CSS Reference
    w3c.org
    bookofstyles.com
    Templates
    halfwaygully.com
    blabla.etc

  2. Mike Little
    Member
    Posted 8 years ago #

    Hi,
    Yes you can. If you do something like this:
    <pre>

  3. <?php echo get_linkcatname(1); ?>
      <?php get_links(1, '

    • ', '
    • ', '', 0, '_updated', 0, 0, -1, -1)?>

  4. <?php echo get_linkcatname(2); ?>
      <?php get_links(2, '

    • ', '
    • ', '', 0, '_updated', 0, 0, -1, -1)?>

  5. </pre>

  • Matt Mullenweg
    Troublemaker
    Posted 8 years ago #

    That's exactly what I'd recommend.

  • Anonymous
    Unregistered
    Posted 8 years ago #

    Thanks!!

  • mike
    Member
    Posted 8 years ago #

    Similar question:
    What are the parameters that < ?php get_links ( ) takes...trial and error was taking too long:).

  • Matt Mullenweg
    Troublemaker
    Posted 8 years ago #

    If you take a look at the php file in wp-links it's documented in the code. However this is horrible! Real documentation is coming soon, I'm anticipating .72 being mostly tweaks and documentation, with any major new features coming in .73. I can promise that get_links is going to be simpler in the future though.

  • Matt Mullenweg
    Troublemaker
    Posted 8 years ago #

    Yes, you can't copy and paste code directly from the forum. I'm working on this.

  • antitodo
    Member
    Posted 8 years ago #

    Thanks! I'll try it as soon as my server gets up again... :(

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.