Read below about related content about display+video+thumbnail+in+rss+feed, You can contact us to improve our contents and site quality

Read below about related content about display+video+thumbnail+in+rss+feed, You can contact us to improve our contents and site quality

How To Disallow theme switching

April 28th, 2010 By WP Tricks Posted in Tricks

For some reason we need to Disallow theme switching in WordPress, why we need disable this featured? There are some reason why we should do it, such as Our WordPress powered site is Final Version, so we didn’t need to change the theme. Or The client “explored” the WordPress dashboard and “accidentally” switched the theme.

Disallow Theme Switcing WordPress

Disallow Theme Switcing WordPress


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

How To Automatically Refuse Comment without Plugin

January 26th, 2010 By WP Tricks Posted in Tips

For many year Spam is the big enemy on internet, there are so many way to Automatically Refuse Comment, some tricks need installed some plugin such as Akismet, WP-Spamfree, Bad Behavior and many more, But I will show you how to do this without Plugin, all need to do only added some code on functions.php on your themes.

This code is original created by Guy and republish by WP Recipes, let’s get started
Read the rest of this entry »

Amazing Touch

The Best Way to Insert Custom Content into Feeds

March 21st, 2010 By WP Tricks Posted in Tricks

The Best Way to Insert Custom Content into FeedsMy Another Favorite featured in WordPress is easy to tweak it out. And WordPress good support on Feed. Sometime we need to insert custom content into our WordPress Feeds right? On this post I will show you how to Insert Custom Content into Feeds. The custom content can be anything – text, markup, or even scripts – and may be set to appear in blog posts, feed posts, or both. You can easily set content to display before or after your post content, or in both places

Write down this code to Insert Custom Content into Feeds

function doContent($content) {
$content = $content . '<p class="extra">Write Down your custom content here!</p>';
return $content;
}
add_filter('the_excerpt_rss', 'doContent');
add_filter('the_content_rss', 'doContent');

Read the rest of this entry »

Amazing Touch

Easy Excerpt Mods on WordPress 2.9

December 21st, 2009 By WP Tricks Posted in Tricks

WordPress 2.9 brings some new features, one of new features is Easy Excerpt Mods via little bit coding on our functions.php theme. Here some tricks how to change excerpt length via this tricks

Open your functions.php and add this code

function new_excerpt_length($length) {
	return 20;
}
add_filter('excerpt_length', 'new_excerpt_length');

This code above will be reduce excerpt length become 20, on this code below, we will try to change excerpt more, the default is … with this tricks we can made it different style, put this code below the code before on your functions.php

function new_excerpt_more($more) {
	return '[.....]';
}
add_filter('excerpt_more', 'new_excerpt_more');

This code I got from bavotasan

Amazing Touch