0
나는 지난 몇 시간 동안 wordpress에서 최근 코멘트를 얻는 방법을 연구하기 위해 노력하고 있습니다. 여기가 .... 내가 최근 게시물을 얻을 수 있었다 어떻게 최신 의견을 얻을 어떻게 wordpress 최근 코멘트를 얻으십시오
<h4>Recent Posts</h4>
<ul>
<?php
$args = array('numberposts' => '5');
$recent_posts = wp_get_recent_posts($args);
foreach($recent_posts as $recent){
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
}
wp_reset_query();
?>
</ul>
..
PS입니다. 게시물을 댓글로 변경하려고 시도했지만 작동하지 않습니다. 사전
스티븐
이 (워드 프레스에 기본적으로 존재하는) : http://www.wpbeginner.com/beginners-guide/how-to-show -recent-comments-in-wordpress-sidebar/ – mimarcel
나는 할 수 있음을 알고 있지만, 코드를 배울 것이지만 ... 감사합니다. – scottiescotsman