【发布时间】:2020-10-04 19:28:22
【问题描述】:
我如何从某个表单中获取消息?
有了这个我可以得到所有的入站消息:
<?php
$args = array(
'post_type' => 'flamingo_inbound',
'post_status' => 'publish'
);
$query = new WP_Query($args);
if( $query->have_posts() ){
while( $query->have_posts() ){
$query->the_post();
echo '<article>';
echo get_the_title();
echo '</article>';
}
}
wp_reset_postdata();
?>
但我只想显示当月特定表单中的消息。我在谷歌和这里搜索,但我找不到任何例子或任何东西,所以我希望有人知道。
【问题讨论】:
标签: php wordpress contact-form-7 wordpress-flamingo-plugin