Wordpress Geeks

How to Change Author Link to Buddypress Profile Link

In this blog post I will show you how to change the author link (link to the WordPress author archive page) to his BuddyPress profile page.

There are three ways to do this. I will show you all. These methods are listed according to their difficulty i.e first being most difficult.

Method 1: Replace the_author_posts_link()

You have to find all the call to function the_autho_post_link() in your theme’s files. This is usually used in index.php, single.php, page.php, archive.php files.

And replace them with:

[crayon lang=’php’]

echo bp_core_get_userlink(get_the_author_meta(‘ID’));


Method 2: Add filter in function.php

Finding the the_autho_post_link() everywhere and replacing with buddpress code could be time-consuming. Thus, you can use a filter to do all the replacement. Just add the below code to your function.php file and it will create a filter and replace all links to your WordPress author profile to the BuddPress profile url.

[crayon lang=’php’]
function ra_add_author_filter() {
add_filter( ‘author_link’, ‘ra_bp_filter_author’ );
add_action( ‘wp_head’, ‘ra_add_author_filter’ );
function ra_bp_filter_author( $content ) {
if( defined( ‘BP_MEMBERS_SLUG’ ) ) {
if( is_multisite() ) {
$member_url = network_home_url( BP_MEMBERS_SLUG );
if( !is_subdomain_install() && is_main_site() )
$extra = ‘/blog’;
$extra = ”;
$blog_url = get_option( ‘siteurl’ ) . $extra . ‘/author’;
return str_replace( $blog_url, $member_url, $content );
return preg_replace( ‘|/author(/[^/]+/)|’, ‘/’ . BP_MEMBERS_SLUG . ‘$1’ . ‘profile/’, $content );
return $content;

Method 3: Install BP-Blog-Author-Link plugin.

The code in method 2 is actually the code from bp-blog-author-link plugin by Ron Rennick. If you don’t like to edit code then simply install this plugin and it will do the trick.

Final Words:

If your theme is not very complex and you know how to play with codes then I recommend to use method 1. It will save some computing. Else go with either method 2 or 3 per your liking.

Wordpress Geeks

WordPress Tips: How to Move your Blog Files Easily

If you are a blogger, you need to transfer your sites file from time to time within your server. But you need not to re-install your wordpress if you’re going to re-locate files. Here are the basic instructions how you can move your wordpress from one location to another no sweat.

Tip No. 1

If you are working on moving your wordpress files from one address to another and changing its URL, what you need to do is to follow either one of the following:

  • Create a new directory if you are going to move your core files to a new one.
  • Back up all index.php files and other important documents if you wish to transfer wordpress into a root directory. Make sure that the root directory is created first before doing so.

Tip No. 2

Login into your blog and go to the administrations settings and go to general panel. Here in the general panel is where you need to add the new folder (address box URI) you wish to move the core files that you created.

Before saving the settings, you need to match the location of your blog address to the wordpress location that you located as well. Now reminders after you have done this step you should not login the blog for an hour or two. The cache folder would be removed by the wp 2.0 users before proceeding to the next step.

Now all files and core files from the old directory or sub catergory  are transferred to a new location (the location you created).  With regards to Permalinks, update the format of if to the.htaccess files found in the directory of the main file (where the index.php is located as well). You can find it at the administration settings for permanlinks.

Tip No. 3

If some images are lost in the process, as expected to happen, go to SQL database in your hosting and change the path of all the images directly to SQL. You can read in-depth tutorials with regards to this process.

Tip No. 4

Also, change the “store uploads folder” to avoid newly uploaded files to go to the earlier folders you have. By doing so go to admin>> Settings>> Miscellaneous panel. But remember to update the new location for new and old media links.
Tip No. 5

When doing this process, there are instances that some permission may or may be changed. Files which show four digit zeros change it to this code “0644” this should revert the permissions back to the original settings. But then it depends to the ISP you are using.

If you are done with everything the final step that needs to be done is to test and see if everything works. You can ask a friend or anybody to try and visit the site if it works. Make your initial run through all of the changes you have done to see if you set them correctly. Take note that it’s quite tedious to locate a malfunction in your site. Run maintenance at least once a month.

Author Bio: This article is written by Kevin Moor, who also writes for, a site emphasizing on windows 7 tweaks.

Wordpress Geeks

Best WordPress Language Translation Plugins

[contentblock id=15]Everyone with a blog on the WordPress platform might someday have had the need to translate the post, i.e provide the articles themselves in other languages.

Today I present excellent plugins for WordPress that makes this work is:


ZdMultiLang is a wordpress plugin allowing you to blog in multiple languages.

Here is a list of functions :

  • Translate posts ang pages
  • Translate categories and tags
  • Switch blog language
  • Widget to change currently viewed language


Global Translator


Global Translator automatically translates your blog in the following 48 different languages: Italian, Korean, Chinese (Simplified), Portuguese, English, German, French, Spanish, Japanese, Arabic, Russian, Greek, Dutch, Bulgarian, Czech, Croatian, Danish, Finnish, Hindi, Polish, Romanian, Swedish, Norwegian, Catalan, Filipino, Hebrew, Indonesian, Latvian, Lithuanian, Serbian, Slovak, Slovenian, Ukrainian, Vietnamese,Albanian,Estonian,Galician,Maltese,Thai,Turkish,Hungarian.

The number of available translations will depend on your blog language and the translation engine you will chose to use.


Google AJAX Translation

[contentblock id=6]Introduction:

The Google AJAX Translation WordPress plugin provides a quick, simple, and light way to add translation to your blog.

A “Translate” button can be added to the bottom or top of posts, pages, and/or comments. When the button is clicked a popup window opens showing a list of available languages.

You can choose which of the 52 languages to display in the Administration Panel. The list of languages can be shown as text (in the native language of each language), as flag icons, or as both. Flag icons can be confusing and sometimes misleading so I recommend the text option. (See this google search for language flags.)


Feel free to suggest any other nice wordpress translation plugin that you know. ZdMultiLang is my fav plugin. Don’t forget to share your experience with this plugins here.