在wordpress的开发中,会使用wordpress的的页面,那么页面数据该怎么调用呢?
拿到页面的 content:
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?>
在wordpress的开发中,会使用wordpress的的页面,那么页面数据该怎么调用呢?
拿到页面的 content:
<?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?>
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。