在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刪除。