Read below about related content about wordpress+multiple+thumbnails, You can contact us to improve our contents and site quality

Read below about related content about wordpress+multiple+thumbnails, You can contact us to improve our contents and site quality

Allow Upload of More File Types

March 22nd, 2010 By WP Tricks Posted in Tricks

Why I love WordPress? It’s because many developer and designer support out there. Some of them give us nice tutorial and tricks. On this post I will share to all of you about How To allow upload of more file types in WordPress.

Allow Upload of More File Types

Allow Upload of More File Types

All need to do only added extra functions on our themes and create WordPress Hooks using standard method WordPress API. This code original created by Pioupioum and we got nice share from WP Recipes. So enjoy it.
Read the rest of this entry »

Amazing Touch

The Best Way to Get All WordPress Custom Fields

March 26th, 2010 By WP Tricks Posted in Tips

WordPress Custom Fields is the most usable field ever, we can give many information using custom fields, we can added custom image post, added some content and many many things we can do.

Display WordPress Custom Fields

Display WordPress Custom Fields

Sometime we need to Get all wordpress custom fields from a page or a post and display it in our post content or page or whatever in our WordPress. Write down this code below in your functions.php theme

Get All Custom Fields Code

<?php
function display_my_customs($id = 0){
//if we want to run this function on a page of our choosing them the next section is skipped.
//if not it grabs the ID of the current page and uses it from now on.
if ($id == 0) :
global $wp_query;
$content_array = $wp_query-&gt;get_queried_object();
$id = $content_array-&gt;ID;
endif;

//knocks the first 3 elements off the array as they are WP entries and i dont want them.
$first_array = array_slice(get_post_custom_keys($id), 3);

//first loop puts everything into an array, but its badly composed
foreach ($first_array as $key =&gt; $value) :
$second_array[$value] = get_post_meta($id, $value, FALSE);

//so the second loop puts the data into a associative array
foreach($second_array as $second_key =&gt; $second_value) :
$result[$second_key] = $second_value[0];
endforeach;
endforeach;

//and returns the array.
return $result;
}
?>
 

Read the rest of this entry »

Amazing Touch

Define a Minimum Word Per Post

September 10th, 2010 By WP Tricks Posted in Tips

WordPress built with many hooks and action that we can put it and make it easy to hack original WordPress code without broken overall functions. On this sample we will show you how to define a minimum word count per post on your WordPress.

Define a Minimum Word -The Vampire Diaries

Define a Minimum Word -The Vampire Diaries


Read the rest of this entry »

Replace Content on Your WordPress using SQL

April 2nd, 2010 By WP Tricks Posted in Tricks

Like we all know, we can use SQL to replace or remove some content in our WordPress using phpMyAdmin, on this post I will show you How To Replace/Remove Content on Your WordPress using SQL. On this trick you can access trough phpMyAdmin on your server or using plugin WP-DBManager and you can direct access trough WordPress Admin panel.

Replace Content on Your WordPress using SQL

Replace Content on Your WordPress using SQL

The original source is come from Digging Into WordPress blog. Did you know what DigWP? is it wonderful WordPress books by Jeff Stars and Chris Coyier. Let’s move on, after you install DB manager or logging into phpMyAdmin, go to Run SQL interface and do this code

UPDATE wp_posts SET post_content = REPLACE ( post_content, 'nofollow ', '' );

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