Read below about related content about how+to+include+rss+on+my+web, You can contact us to improve our contents and site quality

Read below about related content about how+to+include+rss+on+my+web, You can contact us to improve our contents and site quality

How To Extend User Contact Info

January 3rd, 2010 By WP Tricks Posted in Tricks

WordPress 2.9 built with new ability to Extend User Contact Info, this tricks can be done by added some code on functions.php in your current theme. We can added many contact info, depend on your needed. To do extend user contact info, open the files and add this code

<?php
function my_new_contactmethods( $contactmethods ) {
    // Add Twitter
    $contactmethods['twitter'] = 'Twitter';
    //add Facebook
    $contactmethods['facebook'] = 'Facebook';

    return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);
?>

Read the rest of this entry »

Amazing Touch

How To Increasing memory allocate on WordPress

August 16th, 2010 By WP Tricks Posted in Tricks

WP_MEMORY_LIMIT is new options introducing in WordPress 2.5 and newer. This setting increases PHP Memory for WordPress, not other applications.

Increasing memory allocate - Rachel-Bilson in Style UK

Increasing memory allocate - Rachel-Bilson in Style UK

Default Setting, WordPress will trying to Increase Memory into 32M By default, WordPress will attempt to increase memory allocated to PHP to 32MB, so the best ways change the setting more than 32MB on your wp-config.php. How To Increasing memory allocate on WordPress is simple, open your wp-config.php and added this line

define('WP_MEMORY_LIMIT', '64M');

Read the rest of this entry »

Amazing Touch

Custom Query String (Reloaded)

May 13th, 2010 By WP Tricks Posted in Plugins

You can Download WordPress Plugin Custom Query String (Reloaded), this plugin is the perfect solutions to create and customize your WordPress Post. Custom Query String (CQS) provides a Admin Options panel whereby users may specify any number of custom post queries. CQS enables custom sorting of many different types of queries, including:

  • archive
  • author
  • category
  • date
  • year
  • time
  • search
  • home

Read the rest of this entry »

Amazing Touch

How To Display Content for Admin Only

March 3rd, 2010 By WP Tricks Posted in Tricks

Display Specific Content for Admin Only in WordPress can be done easily, all need to do just write some if else statement with same parameter. On this example I will show you how to display simple stats from WordPress and display it in front page. Like on our previous WordPress tricks, we need to tweak on theme files, on this tricks we will play around with footer.php, it’s because I want display this information on the footer area.

How To Display Content for Admin Only

How To Display Content for Admin Only

<?php global $user_ID; if( $user_ID ) : ?>
<?php if( current_user_can('level_10') ) : ?>
<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?>
<?php endif; ?>
<?php endif; ?>

Read the rest of this entry »

Amazing Touch

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