Posted by touhid | Posted in wordpress | Posted on 12-02-2010
This language translator plugin and widget for WordPress is based solely on Trevors old translator widget plugin. His WordPress Translate plugin worked fine for me up to the latest WordPress version release. Starting with WordPress 2.2, there was a complication that caused his great plugin to break. The main problem was that one of the functions in WP 2.2 was named translate which caused an error when the plugin was activated.
I have simply changed or fixed the function name, making this “WordPress Translator Plugin” work with WordPress version 2.5 and beyond. I am providing the fixed version for others in hopes that I might help those who are having trouble with the original WordPress Translate Widget plugin on newer WordPress versions.
WordPress Language Translator Screenshot:

How to install the WordPress Language Translator Widget:
- Download the Language Translator Plugin.
- Unzip the plugin and upload the (translate folder and it’s contents) to your /wp-content/plugins/ directory.
- Log in to your WordPress Admin Panel, navigate to the plugins section and activate the Language Translator Plugin.
- From the Admin Panel, navigate to Presentation -> Widgets and drag and drop the ltranslate widget into the position where you would like it to appear in your sidebar.
- Save the changes and go view your site

Note: If you would like to place the translator outside of the sidebar, for example in your header.php, footer.php etc, simply add the code <?php ltranslate(); ?> where ever you would like to call in the plugin.
The Reason for this plugin:
Errors a person might encounter with the old translate plugin when upgrading:
Fatal error: Cannot redeclare translate() (previously declared in /wp-includes/l10n.php:20) in /wp-content/plugins/translate/translate.php on line 13
Warning: Missing argument 1 for translate() in /wp-includes/l10n.php on line 20
Warning: Missing argument 2 for translate() in /wp-includes/l10n.php on line 20
Posted by touhid | Posted in wordpress | Posted on 12-02-2010
This tutorial explains how to modify the WordPress recent posts sidebar widget entry to display more than 15 recent posts. By default the number of posts to show is (at most 15). Maybe you want to display 20 recent posts? Or more? I’ll show you how.
WordPress – How to display or show more than 15 recent posts:
- Using your favorite FTP application, navigate to your wp-includes directory on your server and copy widgets.php to your PC
- Using Notepad ++ open widgets.php and find the following:
$title = empty($options['title']) ? __(‘Recent Posts’) : $options['title'];
if ( !$number = (int) $options['number'] )
$number = 10;
else if ( $number < 1 )
$number = 1;
else if ( $number > 15 )
$number = 15;
- Change 15 to 20 to display up to 20 posts
- Next find the first occurance of the following:
at most 15
- Change to at most 20
- Save your widgets.php file and upload overwriting the old file on the server
- Now when you go to your Design-> Widgets section, you’ll have the ability to set your recent posts to the max value you set in step 3.
Posted by touhid | Posted in wordpress | Posted on 12-02-2010
This tutorial explains how to modify the WordPress recent posts sidebar widget entry to display more than 15 recent posts. By default the number of posts to show is (at most 15). Maybe you want to display 20 recent posts? Or more? I’ll show you how.
WordPress – How to display or show more than 15 recent posts:
- Using your favorite FTP application, navigate to your wp-includes directory on your server and copy widgets.php to your PC
- Using Notepad ++ open widgets.php and find the following:
$title = empty($options['title']) ? __(‘Recent Posts’) : $options['title'];
if ( !$number = (int) $options['number'] )
$number = 10;
else if ( $number < 1 )
$number = 1;
else if ( $number > 15 )
$number = 15;
- Change 15 to 20 to display up to 20 posts
- Next find the first occurance of the following:
at most 15
- Change to at most 20
- Save your widgets.php file and upload overwriting the old file on the server
- Now when you go to your Design-> Widgets section, you’ll have the ability to set your recent posts to the max value you set in step 3.
Posted by touhid | Posted in wordpress | Posted on 12-02-2010
How to add a second sidebar widget for use on separate pages or posts: The following tutorial covers the process of building a second widget compatible sidebar that can be used on specific pages or posts. Using a different WordPress sidebar for pages and posts allows the user to display different sidebar content on a given post or page. In addition, the user could add the duplicate sidebar widgets plugin to add the same widget content to both sidebars.
Adding a second widget compatible sidebar to WordPress:
This process assumes your using Kubrick or a theme based on Kubrick. Please backup any files before editing.
- Navigate to Design ->Theme Editor from your WordPress admin panel
- Open the functions.php file from the theme file list and find:
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘before_widget’ => ‘<li id=”%1$s”>’,
‘after_widget’ => ‘</li>’,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’,
));
- Replace it with the following code, then update the file:
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’Sidebar 1′,));
register_sidebar(array(‘name’=>’Sidebar 2′,));
You should now have two widget compatible sidebars that show up under Design-> Widgets.
Next we will add a Sidebar template to use for Sidebar 2 and then call it into the page or post we wish to have display the new sidebar.
- Download the sidebar2.zip file and upload the sidebar2.php within to your WordPress wp-content/themes/yourthemename/ directory
- Now to use Sidebar 2, simply replace the following code found in any of your template files. For example (Single Post) single.php
<?php get_sidebar(); ?>
- With the following code:
<?php include(“sidebar2.php”); ?>
Note: You can build a custom template that specifically calls in Sidebar 2 and elect to use it whenever you write a page that you wish to use this alternate Sidebar.
Posted by touhid | Posted in wordpress | Posted on 12-02-2010
The following Duplicate Sidebar Widget Plugin for WordPress allows a WordPress user to duplicate or copy sidebar widgets and use them on multiple sidebars or use the widgets more than once in the same sidebar. Duplicate Sidebar Widgets is based solely on the original Jaw Duplicate Widgets plugin. I have simply cleaned up a couple of errors, corrected the paths and made it compatible with WordPress 2.3 and beyond.
Please note that I did not create this plugin. I have simply fixed the issues that prevented it from working with WordPress 2.3 and beyond (up to Wordpress 2.7). I am providing this fixed version of what was originally JAW Duplicate Widgets for others in hopes that I might help those who could not get the original authors version to work with the latest release of WordPress.
Duplicate Widgets Screenshot:

Installing and using Duplicate Sidebar Widgets:
This fix is outdated. The original Author has since corrected the original JAW Duplicate Widgets Plugin, which is available HERE
- Download Duplicate Sidebar Widgets and extract the php file to your wp-content/plugins/ directory
- Login to your WordPress administration panel, navigate to the plugins section and activate the Duplicate Sidebar Widgets Plugin
- From the Admin Panel, navigate to Presentation -> Widgets and use the options to duplicate or copy your widgets
- Drag the copied widgets to the sidebar you would like them to appear in and go view your site