Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have looked in here and across the internet but I can not seem to find an answer. Is there a way to change the values of the ratings. By Default it seems to be 0 to 10, but I can not find a way to modify this feature to something like 0 to 20 or something.

Thanks.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

See the function link_advanced_meta_box() in wp-admin/includes/meta-boxes.php:

<td><select name="link_rating" id="link_rating" size="1">
<?php
    for ( $r = 0; $r <= 10; $r++ ) {
        echo '<option value="' . $r . '"';
        if ( isset($link->link_rating) && $link->link_rating == $r )
            echo ' selected="selected"';
        echo('>' . $r . '</option>');
    }
?></select>&nbsp;<?php _e('(Leave at 0 for no rating.)') ?>

The value is hard-coded.

You could deregister the metabox 'linkadvanceddiv' and register your own instead.

Be aware the link manager has no future. I would use a custom post type instead with specialized meta data handling.

share|improve this answer
    
I agree completely, The links manager is pretty much designed to do exactly what I need it to do for this one piece of functionality. Other wise I would have taken more time to develop a better solution. thanks for the help! –  user1551846 Jan 14 '13 at 14:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.