I am creating a personalized feed for the users on my website, where everyone can follow the users and categories and see their posts. I'm not sure how.
I have tried to use author__in and category__ in, however, it only shows the publications in which both conditions are met.
I want something like this
$ args = array ( & # 39; relationship & # 39; => & # 39; O & # 39 ;, training( & # 39; category__in & # 39; => array (1,2,3) ) training( & # 39; author__in & # 39; => array (1,2,3) ) )
I read the answer here How to consult publications of authors and specific categories using WP_query?
But the solution is to make an AND call.
Is it possible to do something like & # 39; IF cat = 1,2,3 OR aut = 1,2,3 & # 39; with SQL.