WordPress.org

Ready to get started?Download WordPress

Forums

Help with links template tags (5 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    Hi there,
    I am unsure how to use the following template tag to show just one particulat link category.
    This is the tag:
    <?php get_links_list(); ?>
    I want to show just one links list category, how is this done please? Thanks

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

    Find the Link ID for the category (it's in the admin section)
    It can then be displayed like this:
    <li id="reading">Reading

      <?php wp_get_links(15); ?>

  3. The (15) is the Link ID, and doing it this way allows you to apply styling just to that link category if you then choose (by using css).

  • Anonymous
    Unregistered
    Posted 9 years ago #

    Great Podz!
    So by calling the link ID does that also call the actual Link category header or do I have to name it as your example above?
    Many thanks

  • Mark (podz)
    Support Maven
    Posted 9 years ago #

    You need to provide the Header I think ..... I certainly don't see it twice :)

  • Anonymous
    Unregistered
    Posted 9 years ago #

    OK,
    Many thanks :)

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.