Your changes $r[$page->post_name]; to $r[] = $page->post_name;
are working fine when I checked them
Instead of return $r;
use print_r($r)
You should see the list of all your pages. Also could you describe why you are using return $r
Your changes $r[$page->post_name]; to $r[] = $page->post_name;
are working fine when I checked them
Instead of return $r;
use print_r($r)
You should see the list of all your pages. Also could you describe why you are using return $r