05 Kick-ass WordPress Hacks, Tutorials

wordpress
WordPress, a place where you can create or bring serious types of function and makes your visitor happy. Normally, most of sites have widget ready wordpress theme but if you customize your own theme and replace new things and present your contents in a better way, possibly you can get loyal readers. Soon, you will get hundreds of new visitors and as well you can move your blog for business. Lets learn some new hacks:

  1. Show One Line, Twitter Status to your website

    twitter-updates-example

    When you’re visiting this site, you have seen I’m showing only one line (latest) status to my websites, just after the logo. It’s little bit stylish and as well your visitor might get interest to click and if you’re lucky they will start to follow your twitter account.

    <div id="twitter_div" style="background:url('http://bloggerbuster.com/images/twitter-icon.gif') top left no-repeat;padding-left:50px;"><a id="twitter-link" style="display:block;text-align:right;" href="http://twitter.com/isakib">follow me on Twitter</a></div>
     
    

    Source Code: Add a Customized Twitter Widget to your Blogger Blog

  2. Without paying WordPress.com, move your blog to new Domain/Host

    If you have website on wordpress.com and day by day you’re becoming popula and you believe if you move it and make it self hosted — then you can earn some money and move your blog to the next level, this proxy will work out for you.

    Go to index.php files and change your old and new domain address and upload to your host.

    $dataurl =$primaryurl = "http://googlememe.wordpress.com";//old domain
    $secondaryurl = "http://googlememe.com"; //new domain
    $path =array_keys($_GET);
    if(!empty($path[0])) $dataurl = "{$primaryurl}/{$path[0]}";
    $data = file_get_contents($dataurl);
    $pattern = "~{$primaryurl}/([dS/]+)~";
    $data = preg_replace($pattern,"{$secondaryurl}/$1",$data);
    $data = str_replace(array("<a href="">
    </a>
    
    &lt;form action=&quot;&quot;{$secondaryurl}&quot;),array(&quot;<a> 

    Now, you have to modify your .htaccess and place the codes

    RewriteEngine on
    RewriteCond $1 !^(index.php|images|robots.txt)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{QUERY_STRING} (.+)
    RewriteRule ^(.*)$ index.php?$1&amp;amp;%{QUERY_STRING}
    
    RewriteCond $1 !^(index.php|images|robots.txt)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?$1
    

    Note: Make sure that you have backup copy of your files.

    Source Code: Blog anywhere using this 10 line proxy script

  3. Read more, Content Excerpting in Front Page

    75
    I’ve seen most of the blogger couldn’t able to organize this functions to their blog. The default which is not neat but if you work hard a little you can control your read more functions and as well you can specific the words — when it will create read more. Again and again to creating such things manually that actually waste of time.

    I’ve selected after 80 words, it will break up ad make READ MORE links

    
    
  4. Creating Automatic Thumbnail for Each Post

    thumbnail

    Firstly, install The Attached Images plugins properly.
    Secondly, paste the code (given below) before the <?php the_content(); ?>;

    <div id="thumb_pic"> </div>
    

    Make sure that, you uploaded each photos with every posts and automatically it will choose the first one as thumbnail images.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s