Get Page_ID while using Permalinks
-
hey there,
Is it possible to get the page_id when permalinks are turned on?
I am using an image based navigation and via php I always show another image depending on the active link:
<?php switch ($_GET['page_id']) { case "9": echo '<img src="images/about2.png">' ; break; default: echo '<img src="images/about.png">' ; break; } ?>
but when i am using permalinks this method is not longer possible..
is there a way to get the page_it although permalinks are turned on??
hope you can help me..
regards from germany, cyph
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get Page_ID while using Permalinks’ is closed to new replies.