• 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

    (@felix-j)

    To see the “problem” please go to the site http://xn--bokmrken-3za.net/

    and click on the tab “Flest röster” under “Sponsorer”

    It just shows “N/A”

    Thread Starter Felix J

    (@felix-j)

    Comon anyone help me please.

    get_most_rated isn’t a template tag like wp_get_archives

    Did you install the plug-in WP-PostRatings?

    Thread Starter Felix J

    (@felix-j)

    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!

    I don’t know the theme you are using or this plugin, but check out Managing Plugins and Widgetizing Themes.

    Lycka till.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need help with code…’ is closed to new replies.