Forgive me, I'm a PHP noob and writing too much of it makes my eyes glaze over; I'm sure this is a super simple solution and probably a dumb question.
I'm working on a custom theme where I want to use index.php to show excerpts on the blog (home) pages and all archive/category pages. I created a "post-teaser" template part to accomplish this, called from index.php like so:
<?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'post-teaser' ); ?> <?php endwhile; ?> <?php else : ?>
The issue is that now any permalink takes me to a single instance of this "post-teaser" template (which only includes thumbnail, title, excerpt, and category), rather than the full post. I can easily create a "post-single" template, but how can I call that from index.php only on single posts?