Application Services

This function returns an array of pages that are in the blog, optionally constrained by parameters. This array is not tree-like (hierarchical). See the wp_list_pages() template tag for the output of page titles in a tree-like fashion.

This function can also retrieve other post types using the ‘post_type’ parameter, but the type must be hierarchical like pages, or the function will return false.

Note that, although similar to get_posts(), several of the parameter names and values differ. (It is implemented quite differently, see get_posts().)

NOTE: This function will currently not retrieve pages using the ‘meta_key’ and ‘meta_value’ parameters in the $args array as described below. Until this is fixed in the WordPress codebase, you may want to use get_posts() instead.

Sign up to get our newsletter:


Know more about our company

about page


We believe only quality can defeat a customer's mind

blog page


Check out our portfolio and photos

gallery page