get_page_by_title Wordpress function


Description:

Retrieve a page given its title.


Syntax:


Arguments:

(string) $page_title Page title
(string) $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
(string) $post_type Optional. Post type. Default page.


Return Type:

(WP_Post|null) WP_Post on success or null on failure


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_page_by_title


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×