Other posts section in Single post shows current post

[ad_1]

Hi,

I have an ‘Other posts’ section in my single post page. In this section the list of posts shouldn’t show the current post I’m viewing, therefore I used the following short with a where clause to exclude the current post:
[pods name="recipe" limit="3" where="t.ID NOT in ('{@posts.ID}')" orderby="RAND()" template="Recipe List"]

I tried many variations of the where clause in this shortcode, however the current post keeps showing in the ‘Other post’ section. Can someone kindly provide a more appropriate shortcode which will allow me to exclude the current post from this section, please?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer