Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get_page_title('slug') ?
#5
I'd rather like that these functions (getPageContent, getPageField, etc., available since GS 3.1) were not camelCase, but lowercase with underscores, to be consistent with the other template tags.

If it wasn't because get_page_content, etc. already have an optional parameter ($echo), I would suggest that they had it but for the slug of other page.

An alternative could be an equivalent, like get_other_page_content, get_a_page_content or something (that actually would be an alias for getPageContent)
(BTW ages ago, before caching functions were available, I started working on a plugin to add these, though I called them that_page_content, etc.)
Reply


Messages In This Thread
get_page_title('slug') ? - by datiswous - 2014-01-16, 05:33:42
RE: get_page_title('slug') ? - by Carlos - 2014-01-16, 05:38:32
RE: get_page_title('slug') ? - by datiswous - 2014-01-16, 05:44:51
RE: get_page_title('slug') ? - by hameau - 2014-01-17, 19:55:07
RE: get_page_title('slug') ? - by Carlos - 2014-01-20, 05:58:15
RE: get_page_title('slug') ? - by shawn_a - 2014-01-20, 07:39:07



Users browsing this thread: 1 Guest(s)