Read below about related content about exclude+categories+from+categories+widget+wordpress+2+9, You can contact us to improve our contents and site quality

Read below about related content about exclude+categories+from+categories+widget+wordpress+2+9, You can contact us to improve our contents and site quality

Modify Custom excerpt length

March 23rd, 2010 By WP Tricks Posted in Tips

wordpress-custom-excerpt-lengthOn WordPress 2.9 there are new featured that we can added on the_excerpt(), one of them is change the excerpt length. How to modify Custom excerpt length is really simple. We only needed to put some function on our functions.php themes file and added some hook to call this functions.

Write down Custom excerpt length below

<?php
// Add custom excerpt length
function custom_excerpt_length($length) {
	return 20;
}
add_filter('excerpt_length', 'custom_excerpt_length');
?>

And done, you have new excerpt length, please note you can modify the value of 20, you can added whatever you want. Or if you want totally new version and using your own excerpt, you can follow our tutorial to create Own Excerpt in WordPress. You can tried using plugin on this method

Amazing Touch

Create a Side Blog with WordPress 3.0

August 4th, 2010 By WP Tricks Posted in Tricks

If you need to know How To Create a Side Blog with WordPress 3.0, I will show you how to do it. This tutorial is original created by CatsWhoCode, Thanks for share this wonderful tricks.

Like on my other Tricks and Tips on WordPress, we will play this featured with edit our functions.php themes files. Write down this code

Create a Side Blog - The Pussycat

Create a Side Blog - The Pussycat

function create_my_post_types() {
    register_post_type('tricks',
        array(
            'label' => __('Tricks'),
            'singular_label' => __('Tricks'),
            'public' => true,
            'supports' => array(
                'title',
                'excerpt',
                'comments',
                'custom-fields'
	    ),
	    'rewrite' => array(
	        'slug' => 'tricks',
	        'with_front' => false
	    ),
        )
    );
}
add_action( 'init', 'create_my_post_types' );

After you clear with the code above and save it, you’ll see this code appear on your left menu. More details information about this code you can read it on WordPress Codex. You can began adding data like original post or page. Read the rest of this entry »

Amazing Touch

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

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

How To inserting Google Maps into WordPress

February 22nd, 2010 By WP Tricks Posted in Tricks

Today Tutorial is How To inserting Google Maps into WordPress Posts/Pages without Plugin, we only need to write Google Maps shortcode and we can put our own maps with really easy ways. The first time is write down this code below in your theme functions.php and we need to put the shortcode in our post/page with some parameters.

Code To Inserting Google Maps using shortcode

//Google Maps Shortcode
function do_googleMaps($atts, $content = null) {
   extract(shortcode_atts(array(
      "width" => '640',
      "height" => '480',
      "src" => ''
   ), $atts));
   return '<iframe width="'.$width.'" height="'.$height.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'.$src.'&amp;output=embed" ></iframe>';
}
add_shortcode("googlemap", "do_googleMaps");

Read the rest of this entry »

Amazing Touch