• Resolved THC Labs

    (@thc-labs)


    Can you please guide me what to do for this error in the popular posts widget?

    Warning: The get_mostpopular() template tag has been deprecated since 2.0.3. Please use wpp_get_mostpopular() instead. in G:\PleskVhosts\writopedia.org\thclabs.writopedia.org\wp-content\plugins\wordpress-popular-posts\wordpress-popular-posts.php on line 3281

    https://wordpress.org/plugins/wordpress-popular-posts/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    Please, check here. Ask your theme developer to update the theme so it doesn’t use the get_mostpopular() template tag.

    Thread Starter THC Labs

    (@thc-labs)

    Thanks for your quick response Hector… But my theme developers don’t seem to answer quickly… already have some pending unanswered queries… Can you suggest some other way by putting some code somewhere i can activate it?

    Plugin Author Hector Cabrera

    (@hcabrera)

    If I had to guess, I’d look into your theme’s sidebar (sidebar.php).

    If you’re feeling adventurous, try the following:

    1. Go to Appeareance > Editor.
    2. Click on Sidebar (under Template files) to edit the sidebar.php file.
    3. Find the get_mostpopular('SOME_ARGS_HERE_I_GUESS') function and change it to wpp_get_mostpopular('SOME_ARGS_HERE_I_GUESS').
    4. Hit the Update file button to save changes.
    Thread Starter THC Labs

    (@thc-labs)

    Let me try this and get back… thanks for the quick response bro… cheers

    Thread Starter THC Labs

    (@thc-labs)

    Can’t find this text in the said address bro… can you help find it or change it some other way?

    Thread Starter THC Labs

    (@thc-labs)

    sidebar.php has only the following code:

    <?php
    global $solostream_options;
    if ( $solostream_options[‘solostream_layout’] !== “Full-Width” ) {
    ?>

    <div id=”contentright”>

    <div id=”sidebar” class=”clearfix”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Sidebar-Wide – Top’) ) : ?>
    <div class=”widget”>
    <h3 class=”widgettitle”>Text Widget</h3>
    <div class=”textwidget”>
    This is a widget area. Visit the Widget page in your WordPress control panel to add some content here
    </div>
    </div>

    <div class=”widget”>
    <h3 class=”widgettitle”>Text Widget</h3>
    <div class=”textwidget”>
    This is a widget area. Visit the Widget page in your WordPress control panel to add some content here
    </div>
    </div>
    <?php endif; ?>
    </div>

    <div id=”sidebar-bottom” class=”clearfix”>

    <div id=”sidebar-bottom-left”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Sidebar-Wide – Bottom Left’) ) : ?>
    <?php endif; ?>
    </div>

    <div id=”sidebar-bottom-right”>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Sidebar-Wide – Bottom Right’) ) : ?>
    <?php endif; ?>
    </div>

    </div>

    </div>

    <?php } ?>

    Thread Starter THC Labs

    (@thc-labs)

    Found it under theme-widgets.php

    Thanks a ton bro and cheers πŸ™‚

    Plugin Author Hector Cabrera

    (@hcabrera)

    Glad to know you got it working! See? Piece of cake! Hehe

    Enjoy the plugin!

    Thread Starter THC Labs

    (@thc-labs)

    Haha… you and your plugin are awesome bro πŸ™‚

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

The topic ‘Error in popular posts’ is closed to new replies.