Exclude not working in controller
-
Changed the values of the $defaults variable in the get_posts method and it doesnt appear to be working
$defaults = array(
‘ignore_sticky_posts’ => true,
‘exclude’ => ‘author’
);Author is still showing up in the response. Adding the value to the query string does work.
Any thoughts?
The topic ‘Exclude not working in controller’ is closed to new replies.