WordPress函数:the_post

一、函数简介

在循环中迭代post索引。(Iterate the post index in the loop.)  

二、函数参数

   

三、函数案例

   

四、源代码

/**
 * Iterate the post index in the loop.
 *
 * @since 1.5.0
 *
 * @global WP_Query $wp_query WordPress Query object.
 */
function the_post() {
	global $wp_query;

	if ( ! isset( $wp_query ) ) {
		return;
	}

	$wp_query->the_post();
}
   
THE END