Getting pages by meta_key value

The following example shows how to query posts that have a custom filed name color and the assigned value is red.

Get page children

The following example requests pages whose parent is ID 123. By specifying depth as 1 we can make sure only inmediata children will be return. A list of all pages can be obtained if depth is set as zero (0).