Read below about related content about undefined, You can contact us to improve our contents and site quality

Read below about related content about undefined, You can contact us to improve our contents and site quality

How To Autolink on Twitter Username

February 7th, 2011 By WP Tricks Posted in Plugins

Now, everything have twitter account, Website, Actor, Singer, Politican, Webstore, Website, Google, Yahoo and everything on Twitter. We Have too, so follow our Twitter @WPTricksNet For us, Twitter and WordPress is the right couples.

Autolink Twitter Username Plugin

Autolink Twitter Username Plugin

So, I will show you How To Autolink to Twitter Username. Why this simple functions really helpful? Because if we want try to add twitter username and we must add the links manually it’s really pain and didn’t good. So we googling and found nicely plugin. Read the rest of this entry »

Download Gravatar Widget Plugin

April 5th, 2010 By WP Tricks Posted in Plugins

I love and really enjoy Gravatar, we can simply display our avatar or photos in our site and of course on WordPress. Download Gravatar Widget plugin for WordPress. This plugin is the easiest ways to diplay our gravatar on our sidebar or whatever widget. It’s look like WordPress.com.

The question is, why we recommended this Gravatar Widget Plugin? This is some reason we do it.

  • Email address of Gravatar taken from a user on the blog, or any address
  • Change size of Gravatar
  • Image alignment
  • URL for Gravatar (when someone clicks on the image)
  • Add arbitrary text to your widget
  • Fully localized

Read the rest of this entry »

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

Replace jQuery of WordPress with Google AJAX Library

August 13th, 2010 By WP Tricks Posted in Tricks

I will show you little code How To Replace jQuery of WordPress in your Theme with Google AJAX Library, like we all know, WordPress has built in a lot of JavaScript Framework included jQuery, but for some reason such as Sever Speed or better handling, we need replace original jQuery for WordPress and using Google AJAX Library.

Replace jQuery of WordPress - Shakira Cleverage Photo

Replace jQuery of WordPress - Shakira Cleverage Photo

To use this featured is simple, we need put some code in our functions.php and your WordPress will use Google AJAX Library. Let’s get started

function jQuery_Google_init() {
	if ( !is_admin() ) { // actually not necessary, because the Hook only get used in the Theme
		wp_deregister_script( 'jquery' ); // unregistered key jQuery
		wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.4.2'); // register key jQuery with URL of Google CDN
		wp_enqueue_script( 'jquery' ); // include jQuery
	}
}
// For Themes since WordPress 3.0
add_action( 'after_setup_theme', 'jQuery_Google_init' ); // Theme active, include function

Read the rest of this entry »

Added Permalinks Shortcode on WordPress

February 20th, 2010 By WP Tricks Posted in Tips

WordPress is: Themes, Plugins, Widget, Shortcode, PHP and GPL Licensed. Did you know that, beside Widgets, Another useful WordPress API is shortcode, and now I will show you how to added permalinks shortcode into our WordPress site. Why this shortcode is useful? because with permalinks shortcode The generated URL will be updated automatically, when original permalinks on page or post change.

How To Added Permalinks Shortcode

How To Added Permalinks Shortcode

Let’s get started, write down permalinks shortcode functions on your functions.php in your current theme

function do_permalink($atts) {
	extract(shortcode_atts(array(
		'id' => 1,
		'text' => ""  // default value if none supplied
    ), $atts));

    if ($text) {
        $url = get_permalink($id);
        return "<a href='$url'>$text</a>";
    } else {
	   return get_permalink($id);
	}
}
add_shortcode('permalink', 'do_permalink');

Read the rest of this entry »

Amazing Touch