GetSimple Support Forum
PHP How to get page ID - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11)
+--- Thread: PHP How to get page ID (/showthread.php?tid=7136)



PHP How to get page ID - Riianna - 2015-03-12

Is there some simple php code snippet to get page id?


RE: PHP How to get page ID - Carlos - 2015-03-12

For the current page, get_page_slug() (to display) or return_page_slug()
http://get-simple.info/wiki/themes:template_tags


RE: PHP How to get page ID - Riianna - 2015-03-15

(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


RE: PHP How to get page ID - Carlos - 2015-03-15

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)


RE: PHP How to get page ID - Riianna - 2015-03-17

(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.