home.php or frontpage (via settings) for theme?

Simply put, the WordPress template hierarchy reserves home.php for the homepage, but if you set a Front Page post, it will display that instead. If WordPress core developers reserved it for the homepage, I do not believe it would cause issues with any servers, because they would be putting everyone at risk. Hope that explains … Read more

How to create an archive for all posts that do not have a post format?

For me I’d used a little different approach: use an endpoint to create an url like http://example.com/no-formats/ hooking pre_get_posts to set the proper query if needed filter template_include to force WP to use home.php instead of duplicating it No more. add_action(‘init’, ‘add_no_format_endpoint’); function add_no_format_endpoint() { add_rewrite_endpoint( ‘no-formats’, EP_ROOT ); } add_action(‘pre_get_posts’, ‘handle_no_format’); function handle_no_format( $q … Read more

How to only show the first X words (from each post) on the home page?

Changing the word count on the home page is easy: if( is_home() ) add_filter( ‘excerpt_length’, create_function( ”, ‘return 300;’ ) ); Just replicate that code and change the conditional check to add this to other pages. The other option is to just insert the code on the template page (home.php, tag.php, etc.), so you know … Read more

custom, static home page / landing page with Twenty Eleven theme?

I’m guessing the terminology is different but here are a few links to look at http://codex.wordpress.org/Creating_a_Static_Front_Page Basically – save your custom page as custom-page-template.php in your theme folder – create a new page from WordPress Menu – choose your custom-page from the template drop down on the add new page page – Save and View … Read more

Changing the homepage

To change the site Front Page to be a static Page: Go to Dashboard -> Settings -> Reading Change Front page displays from Your latest posts to A static page In the dropdown beneath this option, select the static Page to use as your Front Page. If you want to display your blog Posts somewhere, … Read more