How do I display several post excerpts (preferably on the sidebar) on single.php? I intend to display a few post excerpts from the same category of the single post.
I am trying to make wordpress use multiple single.php each for different categories. This one I already figured out. Each category-specific single.php has different styling & layout, the single post on the main content div and the same category posts on a secondary div.
I just need help with the exerpts from the same posts. I don’t want to use a related-posts plugin. I just want to learn how the wordpress tags works.
Should it be within a single loop or through multiple loops? If on multiple loops, then how do I exclude the single post from the being displayed twice?
- The topic ‘Excerpts of posts in same category displayed on the sidebar of single.php’ is closed to new replies.