Hello everyone,
On the classic theme, I want to show only the exerpt of a post. The index page is used for this and for most other functions, is that correct?
I also made a seperate archive.php file for archiving. What I'm having problems with is that when I change the_content() to the_excerpt() in index.php and then click a permalink, only the excerpt appears and not the full post.
Am I making sense here? Really would appreciate the input. Thanks in advance.
Absolutely. The classic theme having the minimum number of template files - will use the index.php extensively.
See http://codex.wordpress.org/Template_Hierarchy
You have two options:
a) create a single.php template file that has the_content tag
b) use a conditional in the index.php, that would show the_excerpt when on home page, and the_content when single
http://codex.wordpress.org/Conditional_Tags
Thanks Moshu. I'll give it a try right now.
It worked like a charm Moshu.
I have one more query, Is there a way to display only a couple of the most recent posts per category?
By the way I already looked at options->reading page, and it works when you specify max number of displayed posts and when you specify max of most recent, but if you have only one post in a particular category it will display more entries from other categories to fill the maximum posts to display.
Does that make sense in any way? Got confused just writing it. (",)