WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_bookmarks problem (8 posts)

  1. stef686
    Member
    Posted 7 years ago #

    I'm having a problem when using the title_li attribute in wp_list_bookmarks(). I am leaving it blank as I would not like the title to be displayed (like with similar functions) but it still displays the title and wraps the rest of the list in <ul> tags.

    Here's my code:

    <?php wp_list_bookmarks('limit=4&title_li='); ?>

  2. Samuel B
    moderator
    Posted 7 years ago #

    http://codex.wordpress.org/Template_Tags/wp_list_bookmarks
    About the middle of the page you'll find the arguments.

  3. stef686
    Member
    Posted 7 years ago #

    Hi samboll, I have been looking there and it's not working, have I used the correct syntax?

  4. Samuel B
    moderator
    Posted 7 years ago #

    <?php wp_list_bookmarks('title_li=&depth=4'); ?>

  5. stef686
    Member
    Posted 7 years ago #

    Sorry but that's not working :(

  6. peiqinglong
    Member
    Posted 7 years ago #

    There is a problem with the title_li function. Many people have reported this issue.

  7. gadget1
    Member
    Posted 7 years ago #

    easy fix - open bookmark-template.php in the includes directory and remove the ul's in lines 346 to 350.

  8. npsken
    Member
    Posted 7 years ago #

    That worked, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic