get_page_for_category
get_page_for_category — returns the parent page for a given category id
Summary
get_page_for_category($id);
Return Values
Array
with the page data or false
if the category is not in a page.
Usage
//get the category page
$category_page = get_page_for_category(23);
var_dump($category_page);
if($category_page != false){
print $category_page['title'];
print $category_page['id'];
print $category_page['parent'];
print $category_page['position'];
print $category_page['created_at'];
// and more... print_r($category_page);
}