1
vote
1answer
1k views

Limit get_pages to only show 5 items

How can I limit the get_pages to only show 5 items? I thought adding 'number' => 5 to the array would limit it to 5 but it doesn't show anything. Here's my code: <?php $pages = ...