如何在个人资料页面中显示编辑器添加的电影,我提到用户(编辑器)具有添加电影的功能。
我应该用质询?使用args?
我提到,post\\u类型是“post”,用于电影//////“预告片”,用于预告片
我想在个人资料用户页面上获取电影和预告片。我该怎么做?
----------------------------------- UPDATED -------------------
<?php
global
$current_user;
$current_user = wp_get_current_user();
$recentPosts = new WP_Query();
$recentPosts->query(array(
\'author\' => $current_user->ID,
\'post_type\' => \'post\'));
?>
<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
<div class="bposter">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__(\'Film %s\'), the_title_attribute(\'echo=0\')); ?>">
<img src="/scripts/timthumb.php?src=<?php the_field(\'img\'); ?>&h=120&w=90&zc=1" alt="" title="<?php the_title(); ?>" /></a>
<div class="bpt"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__(\'Permanent Link to %s\', \'kubrick\'), the_title_attribute(\'echo=0\')); ?>">
<?php the_title(); ?>
</a></div>
</div>
<?php endwhile; ?>
</div>
----------------------------------- UPDATED -------------------
这是一张照片http://s12.postimg.org/ssacplu3x/filme.jpg谢谢