Read below about related content about list+all+posts+in+a+category+with+thumbnails, You can contact us to improve our contents and site quality

Read below about related content about list+all+posts+in+a+category+with+thumbnails, You can contact us to improve our contents and site quality

Removing the WordPress Version Number

February 25th, 2010 By WP Tricks Posted in Tips

How To Removing WordPress Version NumberDid you know that? By default, WordPress provides your WordPress version in your feeds. If you peak under the hood and look at the source code for any of your WordPress feeds. Near the top of the file, you will see that WordPress includes its version number declared via elements:

http://wordpress.org/?v=2.9.2

It serves as a slight security risk by enabling attackers to target any specific security holes that may be present in your particular version of WordPress. I will show you how to remove WordPress Version Number on feeds and your theme’s as well. What should we do to remove this information from your site’s feeds, add this tiny function on your functions.php
Read the rest of this entry »

Amazing Touch

How To Create Custom Widgets

December 28th, 2009 By WP Tricks Posted in Tricks

WordPress is the most Usable Publishing System I ever use and found, there are so many blogger and internet writer uses WordPress on they blog. WordPress has many free themes and plugins, the other reason is, they add nice featured such as widgets, with WordPress Widgets, we can add anything without touching the themes files, just drag and setting and done ;)

On this WP Tricks, I will show you, how to create Custom Widgets. This tricks written by Darren Hoyt and Ben Gillbanks, and original published on Darren Hyot Blog
Read the rest of this entry »

Amazing Touch

Modify Custom excerpt length

March 23rd, 2010 By WP Tricks Posted in Tips

wordpress-custom-excerpt-lengthOn WordPress 2.9 there are new featured that we can added on the_excerpt(), one of them is change the excerpt length. How to modify Custom excerpt length is really simple. We only needed to put some function on our functions.php themes file and added some hook to call this functions.

Write down Custom excerpt length below

<?php
// Add custom excerpt length
function custom_excerpt_length($length) {
	return 20;
}
add_filter('excerpt_length', 'custom_excerpt_length');
?>

And done, you have new excerpt length, please note you can modify the value of 20, you can added whatever you want. Or if you want totally new version and using your own excerpt, you can follow our tutorial to create Own Excerpt in WordPress. You can tried using plugin on this method

Amazing Touch

Detect Category ID using the Category Slug in WordPress

January 28th, 2010 By WP Tricks Posted in Tricks

Sometime WordPress Developer need to know Category ID, I will show you how to find Category ID using the Category Slug in WordPress, this tricks is original by Bavotasan and I rewrite it.

WordPress built in with nicely functions get_term_by(), and we will use it to get Category ID based on Category Slug. Here we go what we can do with get_term_by()

<?php get_term_by( $field, $value, $taxonomy, $output, $filter ) ?>

$field: (string) (required) Either ’slug’, ‘name’, or ‘id’. Default: None
$value: (string|integer) (required) Search for this term value. Default: None
$taxonomy: (string) (required) Taxonomy Name. Default: None
$output: (string) (optional) Constant OBJECT, ARRAY_A, or ARRAY_N. Default: OBJECT
$filter: (string) (optional) default is raw or no WordPress defined filter will applied. Default: ‘raw’

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