Other posts section in Single post shows current post
-
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?
The topic ‘Other posts section in Single post shows current post’ is closed to new replies.