获取特色图像链接地址

$imageurl = wp_get_attachment_image_src($id,‘full‘);
$postThumb = $imageurl[0];

获取文章标题

$tittle = get_post($id)->post_title;

获取文章标题并截取前15个文字

$tittle = mb_strimwidth(get_post($id)->post_title,0,30,‘…‘,‘utf-8‘);

获取文章内容

$content = post_password_required( $post ) ? ‘‘ : apply_filters( ‘the_content‘, $post->post_content );

获取文章链接地址

$link = get_the_permalink();

获取文章ID

$id = get_the_ID();

获取文章摘要

$excerpt = get_the_excerpt();

获取文章发布时间

$time = get_the_time();

–上班咯,有空再更新–