GetSimple Support Forum
Template Tags: META Description???? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: Template Tags: META Description???? (/showthread.php?tid=5526)



Template Tags: META Description???? - emanwebdev - 2014-01-17

Hi

What is the Template Tag to retrieve the meta description (not the get_page_meta_keywords()) of the page?

Yes, already looked in

http://get-simple.info/wiki/themes:template_tags

but either the wiki is behind the code
or this tag doesn't exist?


RE: Template Tags: META Description???? - Carlos - 2014-01-18

get_page_meta_desc()


RE: Template Tags: META Description???? - emanwebdev - 2014-01-18

(2014-01-18, 00:37:12)Carlos Wrote: get_page_meta_desc()

Thanks.
Added to the wiki @ http://get-simple.info/wiki/themes:template_tags


P.S. Not logical. None of the others functions have abbreviations but this one. Ah! yes! The exception that proves the rule Wink


RE: Template Tags: META Description???? - shawn_a - 2014-01-18

Not an abbreviation, its the name of the variable.
and get_page_meta_description is a hella long function name


RE: Template Tags: META Description???? - emanwebdev - 2014-01-18

(2014-01-18, 02:07:16)shawn_a Wrote: Not an abbreviation, its the name of the variable.

? sorry, don't get it. what variable?

(2014-01-18, 02:07:16)shawn_a Wrote: and get_page_meta_description is a hella long function name

Angel

but it's part of an 'API'. clarity above all? and nowadays with code completion IDEs, it's a real pleasure to read self descriptive function names popping under the cursor, and such a geela loooong name can still be guessed, and, ok ok ok, i don't want to argue Heart


RE: Template Tags: META Description???? - shawn_a - 2014-01-18

yeah I already said as much in the github issue agreeing that it is a good idea.

actually I was wrong, The var is actually metad, so nm, it is just an abbrv.
the i18n is meta_desc got them mixed up