Hide posts from users with a specific role

Use WP_User_Query to build a list of suspended authors` ids, then use that list with minuses for inversion as author parameter in query.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)