GetSimple Support Forum
Retrieve meta description - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Retrieve meta description (/showthread.php?tid=5271)



Retrieve meta description - jamiew - 2013-10-12

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.


RE: Retrieve meta description - shawn_a - 2013-10-12

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) { 



RE: Retrieve meta description - jamiew - 2013-10-12

Shawn,
That's exactly what I was looking for. Thanks!