Archive for the ‘Wordpress’ Category
How To Install WordPress In Your Language
WordPress by default display in US English but WordPress has the built-in capability to be used in any language.
There are 2 ways to install wordpress in your language
- Follow the instructions listed here for your language
- Manually installation of language files to Wordpress site
- Download the .mo language file for your language
- For complete lists of country codes click here
- For complete lists of language codes click here
- Open your wp-config.php file & find
define ('WPLANG', ''); - Edit according to .mo file. For example Hindi spoken in India
define ('WPLANG', 'hi_IN');
WordPress 3.0 Beta Released
The most popular blogging platform WordPress released version 3.0 beta for testing. Users can try beta version till official WordPress 3.0 release.
According to WordPress blog “This is an early beta. This means there are a few things we’re still finishing. We wanted to get people testing it this weekend, so we’re releasing it now rather than waiting another week until everything is finalized and polished.” So if you are new to WordPress use it at your own risk.
Download the WordPress 3.0 Beta 1 from here
New Features :
- Custom Menus System is not finished in Beta 1, This will change in Beta 2 with improved layout & functionality.
- WordPress and WordPress MU merged but you’ll need some simple directions to get started
- New icons added for the Super Admin area
- There are other changes to the UI and interface as well, including the addition of a new default theme “Twenty Ten” and custom post type functionality improvements.
How To Fix Wordpress Media Upload Error
Problem :
While making the new post on wordpress blog that requires any media like Image & video, When you try to upload media in post you get this error message.
Unable to create directory /wp-content/uploads/2010/03. Is its parent directory writable by the server?
The parent directories “uploads” and “2010″ had 777 permission so there was nothing wrong with the permission settings.
Fix :
The problem was not with the directory permissions, but it was with URL where Wordpress was trying to upload the image.
- Go to Settings > Miscellaneous > Store uploads in this folder
- Remove ” / ” from the front of “wp-content/uploads“
There is another way to of changing the file upload path of your Wordpress blog by modifying wp-config.php file.
- Add this define(‘UPLOADS’, ‘wp-content/new_folder’); Before this require_once(ABSPATH.’wp-settings.php’);
How to Install the WordPress files to a subdirectory but your blog exist in the site root
- Create the new location for the WordPress files to be stored
For Example : Here we use http://yourdomain.com/wp - Go to General option under “Settings” tab in wordpress admin
- Change the address to the new location of your WordPress files in WordPress address (URL) field
For Example : http://yourdomain.com/wp - Change the address to the root directory’s URL in WordPress address (URL) field
For Example : http://yourdomain.com - Click on Save Changes. You will get a message about file not found but don’t worry about error message & leave it.
- Copy index.php and .htaccess files from the WordPress directory http://yourdomain.com/wp into the root directory http://yourdomain.com of your site
- Open index.php form the root directory http://yourdomain.com in any text editor & change the following.
Change this line
require(‘./wp-blog-header.php’);
to the following
require(‘./wp/wp-blog-header.php’); - Login from the new location which is http://yourdomain.com/wp/wp-admin/
- If you have set up Permalinks, go to the Permalinks option under “Settings” tab and update your Permalink structure.WordPress will automatically update your .htaccess file if it has the appropriate file permissions. If WordPress can’t write to your .htaccess file, it will display the new rewrite rules to you, which you should manually copy into your .htaccess file in the same directory as the main index.php file.
How to fix Wordpress MU redirect loop during installation
While using on one of my project encounter this problem, When I open Home Page after installation an endless loop occur.
Why this happens?
It happens when during installation of Wordpress MU, database was not created but the wp-config.php has already been written. If wordpress find this file then installation not begin & it search for the DB to load blog but actual DB information is not there. It try again & again to load blog & redirect loop occur in result.
Fix
To fix the issue simply rename or delete the wp-config.php that was generated during the first install & re-install wordpress mu. Make sure you have corrected the DB problem before you go through the install again & database user you are using during installation have sufficient permission to create and manipulate database tables.
Warning: Cannot modify header information – headers already sent by
If you are looking for the solution to the wordpress error that looks like this
Warning: Cannot modify header information – headers already sent by (output started at /home/bloggers/public_html/blog_name/wp-content/themes/theme_name/functions.php:336) in /home/bloggers/public_html/blog_name/wp-includes/pluggable.php on line 865
Try these solutions :
Solution 1 :
-
Open file mentioned by the warning after “output started at”
-
Remove blank lines from starting & end
- Save & Upload file
Example :
Solution 2 :
How to Separate Comments and Trackbacks
Normally wordpress themes behaviour is to combine both comments and trackbacks / pingbacks together and display under the same list.
To separate editing of comments.php required.
First Step:
Search for:
<?php foreach ($comments as $comment) : ?>
Add After this:
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type == 'comment') { ?>
Second Step:
Search for:
<?php endforeach; /* end for each comment */ ?>
Add After this:
<?php } else { $trackback = true; } /* End of is_comment statement */ ?>
Third Step:
Search for:
<?php else : // this is displayed if there are no comments so far ?>
Add After this:
<?php if ($trackback == true) { ?>
<h3>Trackbacks</h3>
<ol>
<?php foreach ($comments as $comment) : ?>
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type != 'comment') { ?>
<li><?php comment_author_link() ?></li>
<?php } ?>
<?php endforeach; ?>
</ol>
<?php } ?>



