How to add article page url at bottom of the same page?
Question
I started an article directory in word press. I want to add article url at the end of the same page.
How to write that code.
for example http://ezinearticles.com/?Motorcycle-Audio---Accessorize-With-A-Helmet-With-Speakers&id=6279817
here at the end url is given.
thank you.
Solution
A few options for that:
The WordPress way would be to use get_permalink($post_id)
<?php
global $post
$link = get_permalink($post->ID);
or you could use the REQUEST_URI shown here: http://wordpress.org/support/topic/get-current-page-url
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow