cunparis
Member
Posted 3 years ago #
I've searched through the site but cannot find a solution to this problem. I am modifying the classic theme to integrate wordpress into my site. I replace the_content with the_excerpt in my index.php and it works for the main blog page. but when I click on the post, I still get only the excerpt. It must be using the same index.php to display the post. So how do I show the excerpt only for the main blog page or category page but show the real post when someone clicks on it? Is it possible with the classic theme?
Thanks
cunparis
Member
Posted 3 years ago #
I just found the <!--more--> tag which seems to do what I want better than the_excerpt, but I'm still curious if there is a solution to my problem with excerpt. Hopefully this will help others as well.
First mandatory reading about template files:
http://codex.wordpress.org/Template_Hierarchy
When a theme is using the index.php to display everything (which is the case for Classic) the only way to achieve different look in different views - to use conditional tags.
Or, you can just add/create new template files for it.