我使用的是联系方式7。它说使用以下
[contact-form-7 id="23" title="Contact form 1"]
在我的帖子或页面中,我已将其放置在我的帖子中。现在,我正在使用此代码抓取帖子并将其吐到我的自定义页面上。php文件。然而,它只是吐出页面的标题和日期,而内容“发布”没有任何形式可见。还有,将联系人表单放在页面上并能够使用css等联系人表单7进行移动的最佳方式是什么。
<!-- Start the Loop. -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- Display the Title as a link to the Post\'s permalink. -->
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->
<small><?php the_time(\'F jS, Y\') ?> by <?php the_author_posts_link() ?></small>
<!-- Display the Post\'s Content in a div box. -->
<div class="entry">
<?php the_content(); ?>
</div>
<!-- Stop The Loop (but note the "else:" - see next line). -->
<?php endwhile; else: ?>
<!-- The very first "if" tested to see if there were any Posts to -->
<!-- display. This "else" part tells what do if there weren\'t any. -->
<p>Sorry, no posts matched your criteria.</p>
<!-- REALLY stop The Loop. -->
<?php endif; ?>