Title: Need help with code&#8230;
Last modified: August 19, 2016

---

# Need help with code…

 *  [Felix J](https://wordpress.org/support/users/felix-j/)
 * (@felix-j)
 * [17 years ago](https://wordpress.org/support/topic/need-help-with-code/)
 * Hello
 * I got this in a file:
 *  <div class=”tabbertab”>
    <h2>Arkiv</h2>
    -  <?php wp_get_archives(‘type=monthly’); ?>
 *  <div style=”clear:both;”></div>
    </div>
 *  <?php if (function_exists(‘get_most_rated’)): ?>
    <div class=”tabbertab”> <h2
   >Flest RÃ¶ster</h2>
    -  <?php get_most_rated(‘post’, 10); ?>
 *  <div style=”clear:both;”></div>
    </div> <?php endif; ?>
 * But the “most rated” function doesn’t work. Anyone know why?
 * Also if I want to show 10 most visited posts what code would then work?
 * Thanks for any help.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Felix J](https://wordpress.org/support/users/felix-j/)
 * (@felix-j)
 * [17 years ago](https://wordpress.org/support/topic/need-help-with-code/#post-1078690)
 * To see the “problem” please go to the site [http://xn--bokmrken-3za.net/](http://xn--bokmrken-3za.net/)
 * and click on the tab “Flest röster” under “Sponsorer”
 * It just shows “N/A”
 *  Thread Starter [Felix J](https://wordpress.org/support/users/felix-j/)
 * (@felix-j)
 * [17 years ago](https://wordpress.org/support/topic/need-help-with-code/#post-1078745)
 * Comon anyone help me please.
 *  [crayoncrisis](https://wordpress.org/support/users/crayoncrisis/)
 * (@crayoncrisis)
 * [17 years ago](https://wordpress.org/support/topic/need-help-with-code/#post-1078750)
 * `get_most_rated` isn’t a [template tag](http://codex.wordpress.org/Template_Tags/)
   like `wp_get_archives`
 * Did you install the plug-in [WP-PostRatings](http://lesterchan.net/portfolio/programming/php/#wp-postratings)?
 *  Thread Starter [Felix J](https://wordpress.org/support/users/felix-j/)
 * (@felix-j)
 * [17 years ago](https://wordpress.org/support/topic/need-help-with-code/#post-1078755)
 * Hello!
 * Ok, The code come together with the theme design inside a file.
 * Do you or anyone else know how to get it working?
 * The problem is… The template has no widget compatible sidebar (it just got a 
   sidebar) and I haven’t understood how to make it widget compatible and in the
   same time keep the sidebar design even after reading the tutorial….
 * So I cant use any sidebar widgets until I have made it widget compatible.
 * Maybe if I post the sidebar code here anyone can help me in making it widget 
   compatible so I can use the plugin instead?
 * Here is the sidebar code
 *     ```
       <div class="sidebar">
       <?php include (TEMPLATEPATH."/searchform.php");?>
       <?php include(TEMPLATEPATH."/tabber.php");?>
       <?php include(TEMPLATEPATH."/ads.php");?>
       <br />
       <?php include(TEMPLATEPATH."/blogtab.php");?>
       </div>
       ```
   
 * If anyone could remake this code to widget compatible I would highly appreciate
   it…
 * Thank you!
 *  [crayoncrisis](https://wordpress.org/support/users/crayoncrisis/)
 * (@crayoncrisis)
 * [17 years ago](https://wordpress.org/support/topic/need-help-with-code/#post-1078777)
 * I don’t know the theme you are using or this plugin, but check out [Managing Plugins](http://codex.wordpress.org/Managing_Plugins)
   and [Widgetizing Themes](http://automattic.com/code/widgets/themes/).
 * Lycka till.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Need help with code…’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [crayoncrisis](https://wordpress.org/support/users/crayoncrisis/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/need-help-with-code/#post-1078777)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
