WordPress.org

Ready to get started?Download WordPress

Forums

Where to find blogroll rating file? (5 posts)

  1. amysuen
    Member
    Posted 6 years ago #

    My template displays the rating "0" for all the links. I want add a blank selection in the options so the "0" will disappear, but I don't know which file holds that information. It's Edit Link - Advanced - Rating in WP Admin.

    I'd appreciate any help!
    Thank you. :)

  2. jcomp489
    Member
    Posted 6 years ago #

    I'm also experiencing this issue. Any help is appreciated.

  3. silvia.parvu
    Member
    Posted 6 years ago #

    Hi,
    I had the same problem (the "Leave at 0 for no rating" instruction in advanced link settings didn't work for some of my themes) and I just found aslee's answer to a similar question

    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, '

  4. ', '
  5. ', '
    ', 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, '

  6. ', '
  7. ', '
    ', FALSE, 'id', TRUE,
    FALSE, -1, TRUE); ?>

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

    Depending on the theme, the filename may be different (in my case it was sidebar.php)

    Hope it helps,
    Cheers.

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Blogroll ratings are deprecated. They're still in there, but they're not really used or have that functionality exposed anymore.

  9. dfvanden
    Member
    Posted 5 years ago #

    Thanks for this advice. I had been looking all over for a way to fix this. I just set the last of the FALSE/TRUE's in left-sidebar.php to FALSE, and whammo. /rejoice.

Topic Closed

This topic has been closed to new replies.

About this Topic