题
我在Word按下的文章目录。我想在同一页面的末尾添加文章URL。
如何编写该代码。
例如 http://ezinearticles.com/?摩托车 - 音频---带有扬声器和扬声器& ID= 6279817
在这里给出了结束URL。
谢谢。
解决方案
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
不隶属于 StackOverflow