下面是我用来获取Wordpress中所有帖子的代码,但不知怎么的,我不能得到超过9个帖子。我总共有30个职位。任何建议我做错了什么。$post_ids = new WP_Query(array('post_type' => 'sample','fields' => 'ids'));
if ($post_ids->have_posts
我想在帖子过期时更新帖子状态。我已经在WordPress post meta (post_price_plan_expiration_date)中保存了过期日期。我知道如何使用wp_query获取过期的post,但我想使用SQL query来更新post状态。$todayDate = strtotime(date('m/d/Y h:i:s'));'post_type' => 'post',
我需要帮助循环通过一个简单的php代码。on the tag, take me to the author page with all their posts 我正在用single.php编写所有这些(我知道它只影响我打开的页面,并不影响所有的博客)the_author); wp_set_post_tags( $post_id