Skip to main content
6 events
when toggle format what by license comment
Oct 26, 2012 at 17:52 comment added Milo @ageektrapped - you may also want to check out the template filters, which will let you force specific templates under your own conditions. look in wp-includes/template-loader.php and wp-includes/template.php to see how WordPress selects a template, and the apply_filters calls for each where you could add your own filter function to manipulate it.
Oct 26, 2012 at 13:31 vote accept ageektrapped
Oct 26, 2012 at 13:31 comment added ageektrapped Thanks @Milo. I used your suggestion combined with toscho's to get what I wanted. Still think it's weird, but can't do much about it.
Oct 26, 2012 at 3:21 comment added Milo @ageektrapped - use a template part for code reuse.
Oct 26, 2012 at 0:41 comment added ageektrapped That's...rather hacky. I'd really like to have my "lists of posts" pages to look the same regardless where they are in the site. I.e. working off the same template. Doing what you suggest means the same code is in two spots. Yuck. Is there no other way?
Oct 25, 2012 at 20:34 history answered fuxia CC BY-SA 3.0