Query same category posts in Oxygen repeater and exclude current post

2 min readAug 3, 2022

Here is a tutorial on how to create a “related posts” repeater where categories of the post you are currently viewing will be queried whilst excluding the current post itself for better user experience.

My past iterations of this website used to have a sidebar which would always show the most recent 6 posts of the same category as the current post but excluding the current post. This is a fantastic way to allow users to explore more posts without having to go to a post archive page or simply exit the website. In…


I am currently a financial analyst training to become a chartered accountant. In my spare time, I build and blog about WordPress and VBA solutions for people.