<?php $post_id = 2408;
$postArray = get_post($post_id, ARRAY_A);
$title = $postArray['post_title'];
$url = $postArray['guid'];
echo "<a href=" . $url. ">" .$title. "</a>" ;
?>
2048是文章ID
$postArray = get_post($post_id, ARRAY_A);
$title = $postArray['post_title'];
$url = $postArray['guid'];
echo "<a href=" . $url. ">" .$title. "</a>" ;
?>
2048是文章ID