是否有办法自动插入当前用户ID作为帖子类别名称,或者让WordPress仅显示类别名称与当前记录的用户ID匹配的帖子?
<?php
$query = new WP_Query(\'category_name=current-user-id\');
if($query->have_posts()) : while($query->have_posts()) : $query->the_post();
?>
<?php
the_content( __(\'Read the rest of this page »\', \'template\'));
endwhile; endif;
wp_reset_postdata();
?>