WordPress.org

Forums

Links displayed in multiple categories (2 posts)

  1. globalinsites
    Member
    Posted 8 years ago #

    I added a link category in Links/Link Categories, and just tested to add this code to the sidebar.php of my theme (http://teo.esuper.ro/wordpress-themes/falling-dreams) to let the category show up on my site:

    <li>
    <h2 class="sidebar-title"><br />
    <?php _e('More Links'); ?><br />
    </h2>
    <ul>
    <?php get_links('-1', '
    <li>', '</li>
    ', '<br />'); ?>
    </ul>
    </li>

    The category shows up fine but all links show up in both the Blogroll category as well as in the More Links category (so all links are being displayed twice). I checked Links/Manage Links and I see that the links are assigned to different categories, either Blogroll or More Links. How come they display in both categories?
    What should I do to let it display only in the category that I assigned it to in Manage Links?

  2. moshu
    Member
    Posted 8 years ago #

    -1
    That means = show all link categories!
    Citeşte literatura, mă!
    http://codex.wordpress.org/Template_Tags/get_links

    Change +1 to the ID# of the link category to be displayed...

Topic Closed

This topic has been closed to new replies.

About this Topic