Support » Themes and Templates » Can’t edit Blogroll like I want

  • When I put a link and description in my Blogroll the theme adds a “0” at the end. I’m trying to get rid of it but I can’t find where to do it anywhere. I’m not familiar with PHP and about to tear my hair out!

    I’m using the theme Purpling, my blog is


Viewing 2 replies - 1 through 2 (of 2 total)
  • The call to wp_list_bookmarks in the PHP file probably has show_rating=1. I’m not familiar with Purpling, but it’s probably rightsidebar.php or something similar.

    If you set show_rating=0, it should go away.

    OK, so I downloaded Purpling and took it apart for you.

    in rsidebar.php, there’s a set of lines that looks like this:

    <?php get_links($link_cat->cat_id, '<li>', '</li>', '<br />', FALSE, 'id', TRUE,
    TRUE, -1, TRUE); ?>

    If you look at the Codex page for get_links you can see what this means, and change it to your heart’s content.

    If you’re happy with it otherwise, you find out that the second TRUE after ‘id’ determines whether your ratings will show up (try editing one of the links’ rating to 9, and you’ll see it change to 9). You want it to go away, so change it to look like so:

    <?php get_links($link_cat->cat_id, '<li>', '</li>', '<br />', FALSE, 'id', TRUE,
    FALSE, -1, TRUE); ?>

    You could also change ‘id’ to ‘name’ to alphabetize your links, if you’d like.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t edit Blogroll like I want’ is closed to new replies.