How to Display Content from Search URLs on Permanent URLs in WordPress?
If you have registered a custom post type and have added a custom template for it to your theme, then you could do something like this. Add a helper function to functions.php that creates a custom query to find posts matching the topic slug. Using a helper keeps the template file a little cleaner. // … Read more