Different displays on different page types
-
Is there any easy way of having different page elements on different view types?
e.g., different sidebar content for each view. I don’t want a sidebar linkblog to display on any page but the front/”last n” entries page; other information (like an Amazon links if I’m talking about a particular book) is only suitable for single-entry pages, etc.
Another conceivable application would be showing full text entries only on the “last n“, day and single entry views, excerpts on monthly archive pages, and only titles on yearly archive pages.
I’ve dodgily hacked wp-blog-header.php to get this sort of working, but the less said about that the better. (It feels dodgy, doesn’t even work with all use-cases, etc.)
Is there some convenient way to do this? Even just a pointer to relevant documentation/code would be helpful. ??
- The topic ‘Different displays on different page types’ is closed to new replies.