Show List of Posts in Same Category As Current Post

Both these code snippets enable you to display a list of posts which are related to the same category as the current post.

The code also excludes the current post from the list and enables you to use any WP_Query parameters.

The code includes the genesis_entry_footer hook which displays the list of related post titles immediately after the entry meta in your entry footer.

Here’s the code you can simply copy and paste to the end of your child themes functions file:

Related Posts

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.