Add a code check to stop these from being changed:
//Check and Set the Default Thumbnail Sizes
Then they can be called with get_the_post_thumbnail:
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
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:
Template Name: Archives
3. Edit the
<?php the_content(''); ?> t
o <?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.
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:
Template Name: Homepage
Then I published a page, name it Home, and choose Homepage as the Page Template. Continue reading