text Wordpress列出所有帖子在wordpress(博客或新闻页面))

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Wordpress列出所有帖子在wordpress(博客或新闻页面))相关的知识,希望对你有一定的参考价值。

<?php

            while ( have_posts() ) :
                the_post();

                ?>

                <div class="item">
                    <div class="container">
                        <a href="<?php the_permalink(); ?>" class="well well-white-label-pink-top">
                            <span class="label label-pink label-sm">
                                リリース
                            </span>
                            <p class="time">
                                <?php echo get_the_date( 'Y-m-d' ); ?>
                            </p>
                            <h4 class="title-border-bottom-black">
                                <?php the_title(); ?>
                            </h4>
                            <p>
                                <?php the_content(); ?>
                            </p>
                        </a>
                    </div>
                </div>

            <?php

            endwhile;

            ?>

以上是关于text Wordpress列出所有帖子在wordpress(博客或新闻页面))的主要内容,如果未能解决你的问题,请参考以下文章

php Wordpress - 列出所有(自定义帖子类型)帖子类别

WordPress页面模板列出所有帖子

如何在 Gatsby 中获取所有 Wordpress 帖子和显示标签

如何查询我的 WordPress 博客以列出我的 Vue.js 网站上的最新帖子?

php 在wordpress中按类别列出帖子

Wordpress - 存档页面:按年份列出帖子