Read below about related content about wordpress+2+9+multiple+category+exclude+home+page, You can contact us to improve our contents and site quality

Read below about related content about wordpress+2+9+multiple+category+exclude+home+page, You can contact us to improve our contents and site quality

Tutorial and Trick Upload WordPress Theme

May 5th, 2010 By WP Tricks Posted in Tips

Now, Added New WordPress Theme much easier, there are so many ways to do this. The easiest method is Browse on your WordPress Dashboard Appearance Panel > Add New Themes and select some options field your query and do search the data from http://wordpress.org/extend/themes/.

Tricks for Upload WordPress Theme - 1

Tricks for Upload WordPress Theme - 1

On our Example Below we put Search Term Prosumer, and the result displayed Prosumer Theme by WPGPL.com

Tricks for Upload WordPress Theme - 2

Tricks for Upload WordPress Theme - 2


Read the rest of this entry »

Amazing Touch

How To Save Space on Your WordPress Blog Server

February 13th, 2010 By WP Tricks Posted in Tricks

Right now, many blogger uses WordPress for their Publishing platform, I will give some tips how to save space on your WordPress blog server. We will added little bit php code in our functions.php theme files. This code is Automatically uses resized images instead the originals size.

Write code to Automatically uses resized images insteaad the originals below

function replace_uploaded_image($image_data) {
    // if there is no large image : return
    if (!isset($image_data['sizes']['large'])) return $image_data;

    // paths to the uploaded image and the large image
    $upload_dir = wp_upload_dir();
    $uploaded_image_location = $upload_dir['basedir'] . '/' .$image_data['file'];
    $large_image_location = $upload_dir['path'] . '/'.$image_data['sizes']['large']['file'];

    // delete the uploaded image
    unlink($uploaded_image_location);

    // rename the large image
    rename($large_image_location,$uploaded_image_location);

    // update image metadata and return them
    $image_data['width'] = $image_data['sizes']['large']['width'];
    $image_data['height'] = $image_data['sizes']['large']['height'];
    unset($image_data['sizes']['large']);

    return $image_data;
}
add_filter('wp_generate_attachment_metadata','replace_uploaded_image');

This code is doing automatically, so you didn’t needed any command anymore. Thanks for Serge Rauber for tricks about Save Space in WordPress blog server.

Amazing Touch

How To Display Recently Registered Users on WordPress

February 17th, 2010 By WP Tricks Posted in Tips

With little bit functions Display Recently Registered Users on WordPress with Gravatar is easy, we only need to write down little bit of code and the result will be displayed. This code is original resource from WP Recipes, we only tweak it little bit.

Display Registratered Users on WordPress with Gravatar


Read the rest of this entry »

Amazing Touch

Display Latest Tweets on Your WordPress

December 22nd, 2009 By WP Tricks Posted in Tips

Twitter is phenomenal, almost every internet user have this account, they share everything in Twitter. There are so many method how to display Latest Twitter on your WordPress, we can use display as simple rss, using Twitter Widget or using much advantage method to display twitter. On this Tutorial, I will show you how to display your latest twits with more sophisticated method.

Open your sidebar.php theme (if you want display this tweet on your sidebar) and write this code below

<div class="latest-twit">
<?php
$feedURL = "http://twitter.com/statuses/user_timeline/68559295.rss" // change to your feed URL
$doc = new DOMDocument();
$doc->load($feedURL);
$arrFeeds = array();
foreach ($doc->getElementsByTagName('item') as $node) {
    $itemRSS = array (
        'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
        );
    array_push($arrFeeds, $itemRSS);
}
$limit = 5;
for($x=0;$x<$limit;$x++) {
    $title = str_replace('bavotasan: ', '', $arrFeeds[$x]['title']);
    $str = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href=\"\\0\">\\0</a>", $title);
    $pattern = '/[#|@][^\s]*/';
    preg_match_all($pattern, $str, $matches);

    foreach($matches[0] as $keyword) {
        $keyword = str_replace(")","",$keyword);
        $link = str_replace("#","%23",$keyword);
        $link = str_replace("@","",$keyword);
        if(strstr($keyword,"@")) {
            $search = "<a href=\"http://twitter.com/$link\">$keyword</a>";
        } else {
            $link = urlencode($link);
            $search = "<a href=\"http://twitter.com/#search?q=$link\" class=\"grey\">$keyword</a>";
        }
        $str = str_replace($keyword, $search, $str);
    }
    echo '<li>'.$str.'</li>';
}
?>
</div>

That’s all and you can made some custom on this design by play around with your css skills. Thanks for Batovasan for share this code. If you have better idea how to display latest tweets in WordPress please let’s me know

Amazing Touch