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

Code:

// 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

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($27/month).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE

Comments

For adding code blocks wrap the code in three backticks. Markdown should work.
Provide a URL of your site/webpage if something is not working.
  • magnifiercross
    >
    linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
    %d bloggers like this: