I'm working on a small WordPress plugin and I got stuck.
I have 10 pages and
<?php wp_nav_menu(); ?> shows all the names and links to them.
I want to cut these to the first 4 pages and sort them by sort order (sort_order).
Or maybe there's a way with
<?php get_pages() ?>?