Force all images to full size in page template

This code works, although I suspect that it could be more efficient – or replaced by a better filter. I modified this code from the answer to this question, which was the best choice out of all the googles I spent hours trying out.enter link description here You will need to change the ‘full’ to … Read more

Auto-Generate Longtail-SEO Pages/URLs

Hm, likely if there are complete lists of options for “mood” and “location” than there could just be a script that generates all combination of them and – while generating – double check if there is actually enough content for them. And then put them in the sitemap that google uses for getting to know … Read more

Is it possible to have two different previews of a post (ie. two templates for one post)?

The easiest way to solve this is to create a special template file for previews, that will show the post twice in the different layouts. The following code will use the single-preview.php template file if it exists: add_filter( ‘single_template’, ‘wpse15770_single_template’ ); function wpse15770_single_template( $templates ) { if ( is_preview() ) { $templates = locate_template( array( … Read more

Generic taxonomy-term template page

Simply use taxonomy-{taxonomy}.php. Refer to the Template Hierarchy Codex entry regarding taxonomies. WordPress will look for taxonomy template files in the following order: taxonomy-{taxonomy}-{term}.php – If the taxonomy were sometax, and taxonomy’s slug were someterm WordPress would look for taxonomy-sometax-someterm.php. taxonomy-{taxonomy}.php – If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php taxonomy.php archive.php index.php … Read more