• Hi!
    I use Visual composer to view all the posts of the categories on the dedicated page, but I also use it to display the related in the single post.
    I need to exclude a post (id 258) + the current post.
    I created a “related” layout and selected “custom query” in “data source”

    post_type = post & post__not_in = array ($ post-> ID, 258) & orderby = rand & order = ASC

    It does not work … what am I wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Exclude current post in single page’ is closed to new replies.