• 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>

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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>

    Thread Starter rwt

    (@rwt)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp_get_links creating blank entry – help?’ is closed to new replies.