2015-03-12, 06:01:01
Is there some simple php code snippet to get page id?
The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
|
PHP How to get page ID
|
2015-03-12, 06:01:01
Is there some simple php code snippet to get page id?
2015-03-12, 07:15:16
For the current page, get_page_slug() (to display) or return_page_slug()
http://get-simple.info/wiki/themes:template_tags
2015-03-15, 03:30:08
2015-03-15, 19:22:20
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-17, 00:14:00
(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: Thanx, that works fine . Jus t playing with bootstrap scrollby . |
« Next Oldest | Next Newest »
|