Home > Tech > WordPress Tips + Things You Can Do After Installing WordPress

WordPress Tips + Things You Can Do After Installing WordPress


The WordPress tips and few hacks mentioned below may only apply to a self-hosted installation of WordPress version 2.6 or above.

*If your WordPress blog is hosted on wordpress.com, please skip this.

Tip 0: Change the Default Image Upload Folder

The default installation of WordPress will store all your images inside wp-content/uploads folder.

image-upload-folder

You can however use a different folder or even sub-domain on your web server for saving file uploads as in the setting screen above. This offers two advantages – your image URLs become relatively shorter and second, the size of your WordPress folder will always remain small and manageable.

Also deselect the option – "Organize my uploads into month- and year-based folders."

Tip 1: Remove unnecessary code from your WordPress header.

WordPress by default adds a version number to the header of all your blog pages.

<meta name="generator" content="WordPress 2.5" />

This information may prove a goldmine for WordPress hackers as they can easily target blogs that are using the older and less secure versions of WordPress software. To completely remove the version number from WordPress header, add this line to your functions.php file in the WordPress themes folder.

<?php remove_action('wp_head', 'wp_generator'); ?> 

Tip 2: Prevent people from casually browsing your WordPress Folders

Since you definitely don’t want Peeping Toms to navigate your WordPress files and folders using the explorer view in web browsers, add the following link to your .htaccess file that exists in the main WordPress installation directory.

Options All -Indexes

Tip 3: Windows Live Writer Templates & WordPress

If you not blogging via the Windows Live Writer client, add the following line to your functions.php file.

<?php remove_action('wp_head', 'wlwmanifest_link'); ?>

The WLW-Manifest function is used by Windows Live Writer to download the styles / themes used in your WordPress blog. Windows Live Writer users who do not use the live preview feature may also turn off this function.

Tip 4: Turn off Post Revisions in WordPress 2.6

WordPress 2.6 introduced Wikipedia style document revisions where you have access to all previous version of the document making it easy to revert incase you make any mistakes.

This may be a great feature for blogs where multiple authors work on the same blog post but 99% of WordPress users don’t need it. Post revisions also increase the size of WordPress wp_posts table as each revision means an additional row.

To disable post revisions in WordPress 2.6, add this to your wp-config.php file.

define('WP_POST_REVISIONS', false);

Tip 5: Disable HTML in WordPress Comments

The comment box is WordPress is like a basic HTML editor – people can use HTML tags like <b>, <a>, <i>, etc to highlight certain words in their comment or add live links. If you like to disable HTML in WordPress comments, add this to your functions.php

add_filter( 'pre_comment_content', 'wp_specialchars' );

Tip 6: Change location of the Plugins & WordPress Themes folder

With WordPress 2.6, you can place the wp-content folder anywhere on your web server. This may come handy when you are upgrading the WordPress installation because none of your existing themes and plug-ins will get overwritten even if you replace all the WordPress files with a tar downloaded from wordpress.org.

If you decide to move the wp-content folder to another location, specify the path in the wp-config.php file:

define(’WP_CONTENT_DIR’, ‘http://www.labnol.org/assets/wp-content’);

Tip 7: XML Sitemaps – Change the Building Mode

If you using XML Sitemaps plugin in WordPress, try changing the building mode to "manual."

xml-sitemaps

When you publish (or delete) a blog post via the WordPress write panel, the entire XML sitemap is recreated from scratch and hence may increase the overall time it takes to publish a post as you’ll have to wait until the creation process is over.

Tip 8: Turn Off Image Thumbnails in WordPress (workaround)

disable-image-thumbnails When you upload an image to WordPress, it creates two additional thumbnail images in the uploads directory. I don’t know how to prevent WordPress from creating image thumbnails but there’s a workaround if you publish posts via Windows Live Writer.

Just use the FTP publishing option for images and this will automatically disable thumbnail creation because the upload happens through a different route.

 

  1. January 7, 2010 at 4:17 pm

    I was searching for important information on this subject. The information was important as I am about to launch my own website. Thank you for providing a missing link in my free time business.

  2. February 15, 2010 at 6:07 am

    What kind of comment thing does wordpress use? I just want to know so I can use it for my site

  3. February 25, 2010 at 9:04 pm

    Its cool to go through some of these, some of it is good but I have a couple questions. Why #8? What’s wrong with the thumbnails? #6, can you do this for folders that are under wp-content instead of the entire wp-content folder?

  4. April 2, 2010 at 8:42 pm

    If you had the chance to make a change in your local community, what position of power and influence would you assume?

  5. April 4, 2010 at 6:14 am

    How early do you start holiday shopping?

  6. September 7, 2010 at 8:21 pm

    yes have

  7. November 19, 2010 at 1:16 am

    @ Tip 8: Turn Off Image Thumbnails in WordPress…..

    The best solution is to make these thumbnails ‘s size= zero. then it will not be created anymore. I tried it and worked well.

  8. April 19, 2011 at 3:24 pm

    I was searching around for similar subjects and stumble upon this site. Thank you so much for your information. Another important thing to keep in mind as well is to backup all wordpress info…just in case some jokers try to be funny and hack the site.

  9. April 27, 2011 at 10:39 pm

    Hello! I’m at work surfing around your blog from my new iphone 3gs! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the great work!

  10. May 2, 2011 at 5:27 pm

    Great list – thanks for posting this, the tips for cleaning out code from the header is particularly useful and I’ll definitely be looking into this for my own site.

  11. May 7, 2011 at 1:36 pm

    Hi, good topic, like the blog to me 🙂

  12. May 10, 2011 at 6:02 pm

    Hello nice content! I luv this blog! Visit my site @ bbthemesx.blogspot.com

  13. peter josvai
    June 8, 2011 at 4:21 pm

    cool work, thanx !!

  14. October 20, 2012 at 8:32 pm

    Thanks for sharing such a pleasant thinking,
    post is good, thats why i have read it fully

  15. November 1, 2012 at 9:35 pm

    There’s certainly a great deal to learn about this topic. I really like all the points you have made.

  16. April 11, 2013 at 8:05 pm

    Many news networks tease stories promising to give viewers
    “the latest information” and calling nearly any news that happened within the last hour “breaking news!” Stories constantly seem to
    be evolving, making viewers feel the necessity to be updated by the second, but often
    the facts of the story don’t change – only the rumors.

  17. April 14, 2013 at 6:26 am

    I really Believe that posting, “WordPress Tips + Things You Can Do After Installing WordPress
    | UbuntuGIDE.wordpress.com” was indeed good! I reallycan’t see eye to eye with u even more! Finally looks like I reallydiscovered a web-site very well worth reading. Thank you, Nick

  1. December 10, 2013 at 8:47 am
  2. March 24, 2014 at 9:13 am

Leave a comment