the answer for all question about Oxygen Builder plugin and WordPress

Hi, is there a way to “omit” the current post in a repeater ?

Hi, is there a way to “omit” the current post in a repeater ?
I’d like to make a kind of: “you like this post, you will like/ <other posts via a repeater>
**
And is there a way to generate the query in Random order ?”
so that always different posts are proposed ?
**

ps: my previous post (if only 1 plugin) has been deleted by admin because I use a “fancy background”. I didn’t know it was prohibited. Nevertheless I got my answer so thank you all )



Source

5 Comments
  1. Joel Burrows says

    https://pineco.de/snippets/exclude-current-post-from-wp_query/

    specifically: ‘post__not_in’ => array(get_the_ID())

  2. Aikicom Vanhenten Christian says

    I modified my post to add “And is there a way to generate the query in Random order ?”

  3. Thibaut Goarant says

    select manual query and add &orderby=rand to the rest of the by default manual query.

  4. Aikicom Vanhenten Christian says

    in the meantime I found there is a preset

  5. Aikicom Vanhenten Christian says

    thanks, I discovered how to use wp_query advanced and the intersting wizard to build the query I needed

Leave A Reply

Your email address will not be published.

Oxyrealm Docs