Recent Global Posts Widget - How to add hardcoded


This is probably an easy one, but I cant seem to find the answer.

I want to add the recent global posts widget to the sidebar, but below the dynamic area so that it's hard coded into all the templates on my site.

I added this code at the bottom of the sidebar-file below the dynamic loop:

  • <h2 class="sidebartitle"><?php _e('Other Blogs'); ?></h2>
    <ul class="list-meta">
  • <?php widget_recent_global_posts(); ?>
  • This actually works fine except it also prints out an error message like this:

    Warning: Missing argument 1 for widget_recent_global_posts(), called in /home/thailand/public_html/wp-content/themes/glossyblue-1-2/sidebar.php on line 61 and defined in /home/thailand/public_html/wp-content/mu-plugins/widget-recent-global-posts.php on line 141

    Warning: extract() [function.extract]: First argument should be an array in /home/thailand/public_html/wp-content/mu-plugins/widget-recent-global-posts.php on line 143

    I guess I have to pass an argument within the brackets (). Any idea on what argument to pass? :slight_smile: