Results 1 to 5 of 5
Thread: Calling the current page
May 17, 2012, 21:11 #1
- Join Date
- Apr 2003
- Perth W.A.
- 0 Post(s)
- 0 Thread(s)
Calling the current page
I have a footer.php included file from which I need to run a PHP script which extracts the current containing page URL to then echo it to HTML code inside footer.php for a 'Back to top of page' button.
Top of page code inside footer.php: <div id="upArrow"><a href="current-page.php#top"></a></div>
Am I on the right track here? -> <?php get_page( $page_id ) ?>
The following URL shows the page with the working 'Top of Page' button, but the link inside the #upArrow is static — it needs it to 'sense' the current page URL regardless of where you are on the site.
Any help greatly appreciated.