I have tried many things to solve this problem.
So I have a plugin which displays projects assigned to users in a widget. It displays projects as posts. The problem is that it only displays
5 projects on the page.
I am sending a code which display posts:
$projects = get_posts(array('post_type' => 'projects'));
One guy told me to change it to
$projects = get_posts(array('post_type' => 'projects', 'number posts' => 10));
which should help but it didnt.
Anyone have idea how to solve it ? I can send whole code if it's needed.