Read below about related content about wordpress+category+thumbnai+and+excude, You can contact us to improve our contents and site quality

Read below about related content about wordpress+category+thumbnai+and+excude, You can contact us to improve our contents and site quality

Displaying Your Average RSS readers

August 2nd, 2010 By WP Tricks Posted in Tricks

Cats Who Blog write nice code, the function of this code is How to display your average feed and readers. I’ll re share this code for you and we hope you like it.

Displaying Your RSS readers - Diana vickers

Displaying Your RSS readers - Diana vickers

Before we started to code, we need to prepare text editor such as Coda, TextMate, Text Edit, Notepad++ or whatever you like. Then open your functions.php in your themes files and write down.

function get_average_readers($feed_id,$interval = 7){
	$today = date('Y-m-d', strtotime("now"));
	$ago = date('Y-m-d', strtotime("-".$interval." days"));
	$feed_url="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=".$feed_id."&dates=".$ago.",".$today;
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_URL, $feed_url);
	$data = curl_exec($ch);
	curl_close($ch);
	$xml = new SimpleXMLElement($data);
	$fb = $xml->feed->entry['circulation'];

	$nb = 0;
	foreach($xml->feed->children() as $circ){
		$nb += $circ['circulation'];
	}

	return round($nb/$interval);
}

Read the rest of this entry »

Amazing Touch

Tutorial Added Adding Custom Buttons to Editor WordPress

May 3rd, 2010 By WP Tricks Posted in Tips

I was written about Customize WordPress WYSIWYG Editor, and on this tutorial is another one. Today we will show you how to adding Custom Button to WordPress Editor. There are so many advantage why we need to added custom button. We can easy added content using Custom Button, we can added extra functions on our WordPress write panels.

WordPress Custom Buttons - Pretty Girl

WordPress Custom Buttons - Pretty Girl

Let’s get started, on this chapter we will added Google AdSense inserted button on our HTML Editor. Before you added this button, you need to create Google AdSense shortcode on your functions.php, this is example

function do_adsense() {
  $adsense = "You Adnsese Code Here";
  return $adsense;
}
add_shortcode('adsense', 'do_adsense');

Read the rest of this entry »

Amazing Touch

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

How To Display Twitter counter in Text

February 11th, 2010 By WP Tricks Posted in Tips

Display Twitter Counter in Text is easily in WordPress with PHP code, all need to do just write down some PHP Script in our wordpress theme, we can write it on sidebar.php, footer.php, header.php or whatever we want to put on.

This code is similar with our previous tutorial about display FeedBurner counter in text, but we need to change some code, because the source is different, we still use file_get_contents() functions, this functions is the some function that we use to modified TimThumb Script to make it work on some server problem. So, let’s get started
Read the rest of this entry »

Amazing Touch

Tutorial Enable HTML markup in user profiles

April 22nd, 2010 By WP Tricks Posted in Tricks

User profiles in WordPress is the perfect ways to display our information, such as website, Yahoo Messenger and many more. You can add some description about yourself on WordPress Profiles too.

The problem is, default WordPress Profiles descriptions fields is limited some HTML markup, this is not good. But with some tricks we can remove this and we can customizing profiles, so our user able to include a hyperlink, bold text, or some other HTML markup. By default, WordPress prevents this from happening, but you can easily enable it with this friendly little snippet on your theme functions.php

Enable HTML markup in user profiles

Enable HTML markup in user profiles


Read the rest of this entry »

Amazing Touch