GetSimple Support Forum

Full Version: Retrieve meta description
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a template tag/function that returns only the meta description? I see there's a
Code:
get_page_meta_keywords()
, and
Code:
get_header()
, but I'd like to retrieve only the meta description.
Look at theme_functions.php

PHP Code:
/**
 * Get Page Meta Description
 *
 * @since 2.0
 * @uses $metad
 * @uses strip_decode
 *
 * @param bool $echo Optional, default is true. False will 'return' value
 * @return string Echos or returns based on param $echo
 */
function get_page_meta_desc($echo=true) { 
Shawn,
That's exactly what I was looking for. Thanks!