On the single.php page I want to list posts from the same category as the post itself.
If <?php the_category(' '); ?> is applied the category name is displayed, but what if I wanted the actual posts from the category?
On the single.php page I want to list posts from the same category as the post itself.
If <?php the_category(' '); ?> is applied the category name is displayed, but what if I wanted the actual posts from the category?
You will need to code a second loop to retrieve the posts. Do a Google search on 'wordpress multiple loops' for examples and tutorials.
This topic has been closed to new replies.