Page template not registering on theme

Might be a difference in query methods. This is a simpler way to query a page’s content and can be used multiple times in a template without each query conflicting with each other. <?php $my_query = new WP_Query(‘page_id=2’); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php the_content(); ?> <?php endwhile; ?>

search page not found? (search.php or searchpage.php)

You should be able to access search pages via search/foo as well as ?s=foo. This search rewrite rule is built in into WP since version 1.5. I tested it and it works. As for the template files, you will need search.php, searchpage.php is not used. Also see: http://alexking.org/blog/2007/08/30/friendly-search-urls#comment-57678 http://codex.wordpress.org/Creating_a_Search_Page

infinite loop on page with comments after changing comments.php and header.php

The article you’re using is quite old, from ~2009. There are much better cleaner ways of doing commenting. As a guide, follow this: http://ottopress.com/2008/wordpress-2-7-comments-enhancements/ This is the definitive guide to implementing Comments post v2.7, and Otto is widely respected in the community. Firstly, your comments code uses have_posts() to check if there are comments, instead … Read more

Category Template – Show Last Entry as Featured

Use WP_Query’s built in current_post counter in your loop: while( have_posts() ): the_post(); if( $wp_query->current_post == 0 ): // this is the first post in the loop else: // this is > first post endif; endwhile; EDIT w/html: <?php while( have_posts() ): the_post(); if( $wp_query->current_post == 0 ): ?> featured post category description <ul> <?php … Read more