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.


This is a premium members-only content.

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

Already a member? Log in below or here.

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


Find the article helpful and wish to donate?



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.

2 comments on “How to Exclude Current Post from Recent Posts in Oxygen”

    1. Using the same printf method as above, you could change this line;
      printf( '<li><a href="%s">%s</a></li>', esc_url( get_permalink() ), esc_html( get_the_title() ) );


      printf( '<li><img src="%s"><a href="%s">%s</a></li>', esc_url( wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail')[0]), esc_url( get_permalink() ), esc_html( get_the_title() ) );

      You can change the ul / li to just divs if you don’t need it as a list.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: