How to Create a WordPress Plugin

WordPress is carefully designed so plugins we third party can easily customized it without editing the core files. Editing the core files is not recommended because if you do, you can no longer update the WordPress core or you will lose all the edits. The best way to edit the default functionality or add new

Read More
How to add New Thumbnail Size in WordPress

If you want to add new thumbnail size, just add the ff: if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘my-thumb’, 220, 180, true ); //(cropped) }   to retrieve the image, simple call get_the_post_thumbnail(get_the_ID(), ‘my-thumb’); Note: You have to rebuild thumbnails of older images in the media. To do this, go to Media ->

Read More
Hide a Post by Displaying the 404 Error Page

Create a function which will check your condition. If the condition is met, set $wp_query->is_404 to true. Then call that function like add_action(‘template_redirect’, ‘functionName’); function functionName() { global $wp_query, $post; if (condition here) { $wp_query->is_404 = true; } } add_action(‘template_redirect’, ‘functionName’);    

Read More
How to Install WordPress Theme

Have your theme ready. Login to wordpress dashboard. Go to Appearance -> Themes. Click Upload. Upload your theme (zip format) The theme is now activated.   Free WordPress Themes: http://wpshower.com/ http://smthemes.com/soundwaves/   Premium WordPress Themes: http://www.xthemers.com/ http://templatic.com/  

Read More