奥拉,
我正在建设一个复杂的电影院网站,我想按日期拍电影
这些电影都是很好的海报类型,
我有一个自定义字段名日期。
我如何在电影院重播今天应该播放的电影(自定义字段中的日期:08.09.2012…)
我怎样才能按日期重播这部电影
地点:http://cinema.trancelevel.com/cinema/in-curand/
今天流行的电影。。。在righit中
像这样`
<?php
$args = array(
\'posts_per_page\' => \'-1\',
\'post_type\' => \'post\',
\'meta_key\' => \'premiera_cinema\',
\'meta_value\' => date(\'Y-m-d\'),
\'meta_compare\' => \'=\'
);
$todays_movies = new WP_Query( $args );
?>
<?php while ($todays_movies->have_posts()) : $todays_movies->the_post(); ?>
<div class="sidebar-titlu"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
<div class="sidebar-stiri">
<img src="/scripts/timthumb.php?src=<?php the_field(\'img\'); ?>&h=60&w=90&zc=1" alt="" title="<?php the_title(); ?>" />
<?php $excerpt = get_the_excerpt();echo string_limit_words($excerpt,30);?><a class="detalii" href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__(\'Permanent Link to %s\', \'kubrick\'), the_title_attribute(\'echo=0\')); ?>">...detalii</a>
</div>
</div>
<?php endwhile; ?>