How To Change The Default Image Sizes in Media Settings With functions.php

Add a code check to stop these from being changed:

//Check and Set the Default Thumbnail Sizes
if(get_option('thumbnail_size_w')!=160)update_option('thumbnail_size_w',160);
if(get_option('thumbnail_size_h')!=80)update_option('thumbnail_size_h',80);
if(get_option('medium_size_w')!=640)update_option('medium_size_w',640);
if(get_option('medium_size_h')!=320)update_option('medium_size_h',320);
if(get_option('large_size_w')!=1280)update_option('large_size_w',1280);
if(get_option('large_size_h')!=640)update_option('large_size_h',640);

Then they can be called with get_the_post_thumbnail:

$id=$post->ID;
get_the_post_thumbnail($id, 'thumbnail'); // Thumbnail
get_the_post_thumbnail($id, 'medium'); // Medium resolution
get_the_post_thumbnail($id, 'large'); // Large resolution
get_the_post_thumbnail($id, array(480,240) ); // Other resolutions

References:
WordPress.org Forums

Create Archives Page For Your WordPress Blog

1. Open your current WordPress theme, duplicate the page.php and rename it to archives.php.

2. Add this lines to the very top of code in archives.php:

<?php
/*
Template Name: Archives
*/
?>

3. Edit the <?php the_content(''); ?> to <?php wp_get_archives('arguments'); ?> (if you want other format, please read this).

Remove other unnecessary code to meet with what you need.

4. Publish a New Page, call it Archives. Change the Page Template from Default Template to Archives.

There are many tutorials about creating Archives Page. I just want to make it simpler and flexible. If you can understand the point here, you can make your Archives Page in any format. You also can create as many as pages you want, not only Archives Page.

I prefer to combine my archives page with Clean Archives Reloaded plugin.

Static Page And A WordPress Blog

This theme is designed based on a iWeb template on my Macbook. And I love it more when it is integrated with WordPress, make my jobs so much simpler.

The main idea is: make a website with static page on the home page, and set up a blog that has link to the home page, with only single installation of WordPress in the root folder/directory.

I duplicate the Page Template / page.php and rename it homepage.php (or home.php, or intro.php, it’s up to you).  Add this code to the top line:

<?php
/*
Template Name: Homepage
*/
?>

Then I published a page, name it Home, and choose Homepage as the Page Template. Continue reading