我有一個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