12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on May 27, 2019

Related Posts in Oxygen

Sridhar Katakam

This members-only tutorial provides the steps to show related posts without using a plugin by implementing Jetpack-like Related Posts without Jetpack in Genesis tutorial in Oxygen.

Here's how it works:

First it finds the tags a post is assigned to, then tries to find other posts using that same tag. If it gets enough posts, it stops. Otherwise, it checks the category for more posts to finish out the total number of related posts we are going to show (three, in this example).

We shall use CSS Grid with Flexbox fallback for arranging the related posts in columns.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Custom image sizes


// Adds custom image size for images in Related Posts section.
add_image_size( 'related', 440, 244, true );

Set the snippet to run everywhere. Save changes.

Regenerate thumbnails.

Step 2

Add another code snippet.

Title: Shortcodes to produce the tag links list and categories links list


This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.