get_page_title('slug') ? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Themes (http://get-simple.info/forums/forumdisplay.php?fid=10) +--- Thread: get_page_title('slug') ? (/showthread.php?tid=5520) |
get_page_title('slug') ? - datiswous - 2014-01-16 I was using Code: <?php getPageContent('slug'); ?> Code: <?php get_page_title(); ?> RE: get_page_title('slug') ? - Carlos - 2014-01-16 Code: <?php getPageField('slug','title'); ?> RE: get_page_title('slug') ? - datiswous - 2014-01-16 (2014-01-16, 05:38:32)Carlos Wrote: Thanks! Are there more functions for php getPageField ? Then they can be added here: http://get-simple.info/wiki/theme:template_code_snippets RE: get_page_title('slug') ? - hameau - 2014-01-17 (2014-01-16, 05:44:51)datiswous Wrote: Are there more functions for php getPageField ? http://get-simple.info/wiki/config:caching-function RE: get_page_title('slug') ? - Carlos - 2014-01-20 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.) RE: get_page_title('slug') ? - shawn_a - 2014-01-20 Yes all the cache functions will get theme function aliases when I finish rewriting cache. Please add your suggestions to the github case for refactor cache |