GetSimple Support Forum

Full Version: PHP How to get page ID
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there some simple php code snippet to get page id?
For the current page, get_page_slug() (to display) or return_page_slug()
http://get-simple.info/wiki/themes:template_tags
(2015-03-12, 07:15:16)Carlos Wrote: [ -> ]For the current page, get_page_slug() (to display) or return_page_slug()
http://get-simple.info/wiki/themes:template_tags

Of course .. my bad Blush. How about get all pages? like if i want to show all pages (and all new pages also) in one page? Rolleyes
As of GS 3.3.x, a way to do something like that could be accessing global $pagesArray and using caching functions, like in this script:
http://get-simple.info/forums/showthread.php?tid=3083
(if you know a bit of php you can use some of the code - ignore the custom permalink stuff)
(2015-03-15, 19:22:20)Carlos Wrote: [ -> ]As of GS 3.3.x, a way to do something like that could be accessing global $pagesArray and using caching functions, like in this script:
http://get-simple.info/forums/showthread.php?tid=3083
(if you know a bit of php you can use some of the code - ignore the custom permalink stuff)

Thanx, that works fine Big Grin. Jus t playing with bootstrap scrollby Big Grin.