
Our downloadable Twenty Eleven Child theme has now been updated to include a simple Page of Posts custom page template.

Our downloadable Twenty Eleven Child theme has now been updated to include a simple Page of Posts custom page template.

Yes, you did read that title correctly. And I did a double-take too when I saw this posted in the wordpress.org support forums. I thought that this kind of thing was an urban myth. But — hand on heart — someone really did decide to store more than a dozen, previously published, posts in their…

Continuing with the topic of custom read more links, there are times when you may want to use <?php the_content();?> in your theme’s template file in conjunction with the <!–more–> tag in your posts to create custom post teasers. But you want the “read more” link to appear somewhere other than immediately after the teaser.…

Excerpts (teasers) can be shown on WordPress through two methods: Using <?php the_content();?> in your theme template file(s) and then inserting the <!– more–> into your post at your desired cut-off point. Using <?php the_excerpt();?> in your theme template file(s) and allowing WordPress to generate a teaser from the first 55 words of the post’s…

The body_class() WordPress function attaches a list of classes to the <body> element according to what type of page is being displayed. These classes can be used — in conjunction with your theme’s stylesheet — to display different backgrounds on different pages. Let’s assume your header.php template file contains: <body <?php body_class(); ?>> And your…