WordPress.org

Ready to get started?Download WordPress

Forums

Can't edit Blogroll like I want (3 posts)

  1. amysuen
    Member
    Posted 6 years ago #

    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 http://www.myhappycrazylife.com

    Thanks!

  2. aslee
    Member
    Posted 6 years ago #

    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.

  3. aslee
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic