동일한 페이지 하단에 기사 페이지 URL을 추가하는 방법은 무엇입니까?
문제
Word Press에서 기사 디렉토리를 시작했습니다.같은 페이지의 끝에 기사 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