我有一个WordPress自定义后置式设置。我创建WordPress自定义文章类型Single.php?
single-[customposttype].php
然而,而不是只显示要求定制后型不言而喻的URL,然后显示在所有的定制式的职位。
这里是我目前使用的代码的副本:
<?php query_posts("post_type=shorts"); while (have_posts()) : the_post(); ?>
<div class="header-promo">
<?php echo get_post_meta($post->ID, "mo_short_embed", true); ?>
</div>
<div class="content-details">
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
</div>
<?php endwhile; ?>
感谢提前:)
这样的问题是理想的http://wordpress.stackexchange.com/ – 2010-10-18 04:48:37
谢谢安迪我也在那里发布了这个问题(http://bit.ly/c0q3WR) – 2010-10-18 09:35:29