Update template without undoing all my edits?

You may want to look into child themes – they allow you to customize your theme without overwriting the original files, meaning you can still take advantage of updates to the original theme. This tutorial on Themeshaper taught me a lot.

Is it possible to give the user the chance to select between two single template files to use in a post?

If the differences in the pages are just query arguments the you can add query vars and use them in the same template: //add your arguments to query vars add_filter(‘query_vars’, ‘my_query_vars’); function my_query_vars($vars) { // add my_sortand ptype to the valid list of variables you can add as many as you want $new_vars = array(‘my_sort’,’ptype’); … Read more

attachment page template? only show attachments for current post?

The attachment.php is a specific template in the WordPress template hierarchy. WordPress uses it for a specific purpose, and the default Loop just won’t do what you’re claiming it’s doing. (The behavior you’re describing would be analogous to the single.php template file looping through all Posts.) I’m guessing your attachment.php template file has a custom … Read more