常用函数-wp_insert_post()2009-03-24 常用函数-wp_insert_post() 说明 该函数可在数据库中插入文章(及页面)。它可以进行处理变量,检查操作,填充日期/时间等缺失变量等工作。该函数以对象作为变量,返回已创建文章的编号(出错时返回0)。 ...
常用函数-wp_delete_post()2009-03-24 常用函数-wp_delete_post() 说明 根据文章编号删除文章 用法 <?php wp_delete_post($post_id); ?> 示例 ...
常用函数-wp_get_single_post()2009-03-24 常用函数-wp_get_single_post() 说明 按文章编号检索某篇文章。 用法 <?php wp_get_single_post( $postid, $mo...
常用函数-wp_get_recent_posts()2009-03-24 常用函数-wp_get_recent_posts() 说明 按发表时间检索数据库中的$num最新发表文章。默认检索最近十篇文章。 用法 <?php wp_get_recent_posts...
常用函数-get_extended()2009-03-24 常用函数-get_extended() 说明 获取扩展项信息 ( <!--more--> ). 第二个破折号后和单词“more”前不能留有空格。“...
常用函数-get_children()2009-03-24 常用函数-get_children() get_children( )检索附件、版本、子页面等信息,一般情况下由父文章执行。 get_children( )与get_posts( )运行基本一致。 简介 ...
常用函数-get_post_type()2009-03-24 常用函数-get_post_type() 说明 检索目前文章或给定文章的文章类型。 用法 <?php get_post_type( $post ) ?>...
常用函数-get_post_status()2009-03-24 常用函数-get_post_status() 说明 按文章ID检索文章状态。 如果文章ID是附件,该函数给出源文章的状态。 用法 <?php get_post_status(&n...
常用函数-get_post_mime_type()2009-03-24 常用函数-get_post_mime_type() 说明 按ID编号检索附件的mime类型。 该函数可用于任何类型,但更适用于附件类型。 用法 <?php get_post_mi...