Read below about related content about wordpress+create+posts+from+external+rss+feed, You can contact us to improve our contents and site quality

Read below about related content about wordpress+create+posts+from+external+rss+feed, You can contact us to improve our contents and site quality

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 Create “Dynamics Statics” Pages

May 6th, 2010 By WP Tricks Posted in Tricks

There are so many WordPress Tricks that we can apply. In our current section we will show you, how to create “Dynamics” “Statics” Pages in WordPress. That’s I mean on this point is simple. We will generated semi automatics pages using little bit query and custom field

Creating dynamic static  pages - Jessica Jane Clement

Creating dynamic static pages - Jessica Jane Clement

The first time we should to do is create Custom Page, it’s really simple, duplicate your page.php and give another name (example page-dynamics.php) and added on the top code

<?php /* Page Template: Dynamics Page */ ?>

Read the rest of this entry »

Amazing Touch

Remove nofollow attributes from comment text

February 19th, 2010 By WP Tricks Posted in Tips

WordPress added nofollow attributes on comment text url, this is bad for some commeter that needed some backlinks, if you want remove nofollow attributes from comment text in your WordPress site is easely, all need to do just added some code on functions.php on your theme and added some wordpress hooks using add_filter functions and your external url on comment text will be gone.

Write down to remove noffolow attributes on comment text below

function remove_nofollow($string) {
	$string = str_ireplace(' rel="nofollow"', '', $string);
	return $string;
}
add_filter('comment_text', 'remove_nofollow');

And done, now you can check on your comment area with url and the nofollow attributes is gone ;) thanks for DigWP for share this code

Amazing Touch

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

How To Customize WordPress WYSIWYG Editor

February 25th, 2010 By WP Tricks Posted in Tricks

Did you know that, Customize WordPress WYSIWYG Editor is one of my favorite excellent tricks by WP Engineer, please note this tricks need so many code to be added in functions.php on your theme, so read it carefully and happy explore this tricks.

How To Customize WordPress WYSIWYG Editor

How To Customize WordPress WYSIWYG Editor

Customizing the function of the buttons in your Editor

function do_change_mce_buttons( $initArray ) {
	//@see http://wiki.moxiecode.com/index.php/TinyMCE:Control_reference
	$initArray['theme_advanced_blockformats'] = 'p,address,pre,code,h3,h4,h5,h6';
	$initArray['theme_advanced_disable'] = 'forecolor';

	return $initArray;
}
add_filter('tiny_mce_before_init', 'do_change_mce_buttons');

Read the rest of this entry »

Amazing Touch