wordpress - 如何在 Wordpress 中回显 100% 的 the_post?

因此,我查询帖子,取回匹配的所有内容,然后执行我的循环 - 但我想在每个循环中执行某种 print_r 类型的操作,以便我可以看到 100% 正在获取的数据。我脑子完全卡住了……求救!

这是我的查询,然后是我的循环:

<?php query_posts('post_type=property'); ?>

<?php while (have_posts()) : the_post(); ?>
<?php endwhile; ?>

只是想不通如何回显 100% 通过循环的每次迭代获取的内容?

感谢大家的帮助!

最佳答案

一定要用循环吗?如果没有,那么我会尝试:

<? $posts_array = get_posts('post_type=property');
print_r($posts_array); ?>

https://stackoverflow.com/questions/10940907/

相关文章:

hibernate - 如何定义两个抽象类之间的 ManyToOne 关系

c# - "Unable to find an entry point named"在 c# 中使用

regex - 如何使用正则表达式查找字符串中出现的相同后续字符?

regex - 如何匹配同一字符串中的多组正则表达式模式?

asp.net - 读取已在 ASP.NET httpmodule 中设置的经典 ASP 中的服务器

jquery-ui - jQuery UI 日期选择器。显示一种格式,保存其他格式

.net - String.GetHashCode() 的复杂性

rest - 使用 Twitter 的 REST API 从收藏夹获取 faved_at 日期?

r - 如何处理每次有多个点的时间序列(在 R 中)?

oracle - 使用 sqlloader 将 clob 列添加到 Oracle 数据库