Posts: 40
Threads: 12
Joined: Nov 2013
2014-01-17, 20:16:29
(This post was last modified: 2014-01-17, 20:29:09 by emanwebdev.)
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?
Posts: 3,491
Threads: 106
Joined: Mar 2010
Posts: 40
Threads: 12
Joined: Nov 2013
(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
Posts: 6,266
Threads: 181
Joined: Sep 2011
Not an abbreviation, its the name of the variable.
and get_page_meta_description is a hella long function name
Posts: 40
Threads: 12
Joined: Nov 2013
(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
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
Posts: 6,266
Threads: 181
Joined: Sep 2011
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