Read below about related content about inserting+rss+headlines+in+wordpress, You can contact us to improve our contents and site quality

Read below about related content about inserting+rss+headlines+in+wordpress, You can contact us to improve our contents and site quality

How To Display External RSS Feeds

December 25th, 2009 By WP Tricks Posted in Tricks

On our recent post, we have write about WordPress Feed Tricks, Right now we will do something else. Sometime we have another useful resource about our blog, some of them really interesting and we need to put the content on Sidebar. With little bit code and tweak, we can made it on our WordPress. How To Display External RSS Feeds on our WordPress is easy.

There are so many method to display External Feeds, we can using RSS Widget, or write our own code. On this tips, we use some WordPress functions and make it smoothly on our WordPress Read the rest of this entry »

Amazing Touch

Tricks: Display Total Twitter Followers as Text on WordPress

December 28th, 2009 By WP Tricks Posted in Tips

Everybody blogging everybody using Twitter for Microbloging tools. On this tips, I will show you how to display your total twitter followers on your sidebar or whatever and displaying as text. All need to do is add little bit code on your header.php or footer.php or sidebar.php files. and done.

Please remember to make sure that you change WPTricksNet to your username. To Display Total Twitter Followers as Text, you need to write this code below

<?php
$tw = get_option("twitterfollowerscount");
if ($tw['lastcheck'] < ( mktime() – 3600 ) )
{
$xml=file_get_contents('http://twitter.com/users/show.xml?screen_name=WPTricksNet');
if (preg_match('/followers_count>(.*)</',$xml,$match)!=0) {
$tw['count'] = $match[1];
}
$tw['lastcheck'] = mktime();
update_option("twitterfollowerscount",$tw);
}
echo $tw['count'];
?>

Thanks for WP Recipes for share this code, we got this nice tips via WP Beginner

Amazing Touch

How To Redirects To Another Page In WordPress Backend

February 3rd, 2010 By WP Tricks Posted in Tips

Redirect to Another Page in WordPress Backedn is possible in WordPress, it’s because WordPress built in in many many featured, a lot of simple code, a lot of API and many more, on this tips, I will show you how to redirects to another page in WordPress backend. This code use wordpress function wp_redirect()

Try to explore this example from wp engineer and you can explore more to get what you really want

function do_redirect_1() {
	global $pagenow;

	if ( 'plugins.php' === $pagenow ) {
		if ( function_exists('admin_url') ) {
			wp_redirect( admin_url('edit-comments.php') );
		} else {
			wp_redirect( get_option('siteurl') . '/wp-admin/' . 'edit-comments.php' );
		}
	}
}
if ( is_admin() )
	add_action( 'admin_menu', 'do_redirect_1' );

Read the rest of this entry »

Amazing Touch

How To Save Space on Your WordPress Blog Server

February 13th, 2010 By WP Tricks Posted in Tricks

Right now, many blogger uses WordPress for their Publishing platform, I will give some tips how to save space on your WordPress blog server. We will added little bit php code in our functions.php theme files. This code is Automatically uses resized images instead the originals size.

Write code to Automatically uses resized images insteaad the originals below

function replace_uploaded_image($image_data) {
    // if there is no large image : return
    if (!isset($image_data['sizes']['large'])) return $image_data;

    // paths to the uploaded image and the large image
    $upload_dir = wp_upload_dir();
    $uploaded_image_location = $upload_dir['basedir'] . '/' .$image_data['file'];
    $large_image_location = $upload_dir['path'] . '/'.$image_data['sizes']['large']['file'];

    // delete the uploaded image
    unlink($uploaded_image_location);

    // rename the large image
    rename($large_image_location,$uploaded_image_location);

    // update image metadata and return them
    $image_data['width'] = $image_data['sizes']['large']['width'];
    $image_data['height'] = $image_data['sizes']['large']['height'];
    unset($image_data['sizes']['large']);

    return $image_data;
}
add_filter('wp_generate_attachment_metadata','replace_uploaded_image');

This code is doing automatically, so you didn’t needed any command anymore. Thanks for Serge Rauber for tricks about Save Space in WordPress blog server.

Amazing Touch

How to Get Most Commented Posts with Thumbnail

January 10th, 2010 By WP Tricks Posted in Tricks

There are so many way to attract visitor on your WordPress blog, the one of them is show most popular post on your sidebar or footer, beside that fact in order to help your visitors finding your best content.

Let’s me share “How to get most commented posts along with their related thumbnail“, This trick need little bit code to be written on your themes files. I will show you how to do this. The first time, open your sidebar.php or footer.php or whatever files with your favorite editor. Then write down this code

<?php $popular = new WP_Query('orderby=comment_count&posts_per_page=5'); ?>
	<?php while ($popular->have_posts()) : $popular->the_post(); ?>
	<?php $justanimage = get_post_meta($post->ID, 'thumbnail', true);
		if ($justanimage) { ?>
	<img src="<?php echo get_post_meta($post->ID, "Image", true); ?>" alt="<?php the_title(); ?>" />
	<?php } else { ?>
	<img src="http://an-alternative-image.jpg" alt="" />
	<?php } ?>
	<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php endwhile; ?>

Read the rest of this entry »

Amazing Touch