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

How to Exclude Current Post from Recent Posts in Oxygen

Sridhar Katakam

This members-only tutorial provides the steps to show a list of 5 latest posts on single posts in Oxygen while excluding the current post.

For each post, we will show the title linking to post's permalink.

Step 1

Edit the Template that applies to Singular Posts with Oxygen.

Add a Section.

Add a Columns component (60 40) inside the Section.

In the left Div, add WordPress > Dynamic Data > Content.

In the right Div, add a Heading.

Change the tag to h3 or h4.

Font Size: 22px

Add a Code Block below the Heading.

PHP & HTML:

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.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right