A lot of people already asked about this question all over the internet and a lot of guru already answered it too.  But I would like to add it in to my tips and tricks here.  Here is the trick,

Those links are called ‘Badges’.  You can enable them on your Facebook profile page.  Currently Facebook is providing four kind of links, Profile Badge, Photo Badge, Link Badge and Page Badge.  You can check them here Continue reading

To add custom avatar to your discussion setting (under Settings > Discussion), just put below code to your functions.php

[code]//Add custom avatar
if ( !function_exists('fb_addgravatar') ) {
function fb_addgravatar( $avatar_defaults ) {
$myavatar = get_bloginfo('template_directory') . '/images/myavatar-1.gif';
$avatar_defaults[$myavatar] = 'custom 1';

$myavatar2 = get_bloginfo('template_directory') . '/images/myavatar-2.png';
$avatar_defaults[$myavatar2] = 'custom 2';

return $avatar_defaults;
}

add_filter( 'avatar_defaults', 'fb_addgravatar' );
}[/code]

Note: Change “myavatar-1.gif and myavatar-2.png” with your images’ name. Continue reading

Creating a custom post type is easy: All you have to do is open your theme functions.php file and paste the following code:

[code]$args = array(
'label' => __('Products'),
'singular_label' => __('Product'),
'public' => true,
'show_ui' => true,
'capability_type' => 'page',
'hierarchical' => false,
'rewrite' => true,
'query_var' => 'products',
'supports' => array('title', 'thumbnail')
);
register_post_type( 'product' , $args );[/code]

Once you saved the file, login to your WordPress dashboard and have a look Continue reading

First you need to put this code into your header.php file.  Probably your header.php file already had wp_head(); .  If so just add below code above the wp_header();

[code]wp_enqueue_script("jquery");[/code]

After that you can call your own jQuery Javascript file.

To be super-safe, you can put jQuery into “no conflict” mode and use a different shortcut for jQuery. In this case “$jQ” instead of the default “$”. The standard “$”, for example, can conflict with Prototype. Here is an example of a safe bit of jQuery JavaScript:

e.g: var $jQ = jQuery.noConflict();