私がここにいるのかどうかはわかりませんが、Wordpress の WP_Query に問題があります。次のコードがあります。
$the_query = new WP_Query();
$the_query->query('post_type=property');
// The Loop
while ( $the_query->have_posts() ) : $the_query->the_post();
?>
<div class="featured">
<h1><?php the_title() ?>d</h1>
<!--<ul>
<li>3 Bedrooms</li>
<li>Large Garden</li>
<li>Walking distance to shops</li>
<li>Semi-Detached</li>
</ul>-->
<a href="#" class="more-info">More details</a>
</div>
<?php
endwhile;
3 件の投稿が正しく検出されますが、表示されませんthe_title()
。誰でもその理由を見ることができますか?