The Kubrick template that defaults with Wordpress has a nice feature where entries on the main and category index pages are shown as excerpts, but on the individual entry templates are full text. What would I need to use in a custom template to replicate this feature? Replies much appreciated.
On my website http://www.webmarketweek.com/ I've don't something with the excerpt like this: <?php if($p) {the_content(); } else {the_excerpt(); } ?> Code (markup): Maby this will get you started: http://wiki.wordpress.org/the_excerpt
<?php if($p) {the_content(); } else {the_excerpt(); } ?> Code (markup): That's *exactly* what I was looking for - many thanks for that. I'd green rep you, but I have to spread more around, so if anyone would like to do the honours and green rep WhatiFind it would be appreciated.
It's actually been really interesting hacking around with templates lately and learning new commands - and your template has been part of that process. Any good tutorials on what the standard variables and functions are and what they do? For instance <?php if ( is_home() || is_page() ) { ?> Code (markup): I've used is_home() on my template and it still applies to all the subsequent index pages, but not to the individual posts or to "pages". I could check the function itself but a simple guide would be good for the less PHP-literate. Sarah