WordPress.org

Ready to get started?Download WordPress

Forums

wp_get_links creating blank entry - help? (3 posts)

  1. rwt
    Member
    Posted 9 years ago #

    Reference this page:
    http://www.recommendedwebtools.com/index.php/other-resources

    I have a problem where the wp_get_links function is producing a blank entry. The funny thing is sometimes it appears, sometimes it doesn't. I can view that page and every category will show a blank entry. I refresh and then some categories display perfectly while others do not. Any thoughts on how to completely eliminate that blank entry?

    The code used for each section of links is:


    <li> <?php _e('Section Name'); ?>
    <ul>
    <li><?php wp_get_links(N); ?></li>
    </ul>
    </li>

  2. prissed
    Member
    Posted 9 years ago #

    you have an extra <li></li> set in there.

    Take out the ones wrapping the links function:

    <code><li><?php _e('Section Name'); ?>
    <ul>
    <?php wp_get_links(N); ?>
    </ul>
    </li>

  3. rwt
    Member
    Posted 9 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic