摘要: http://bbs.denglu.cc/thread-3684-1-1.html 阅读全文
posted @ 2012-09-14 18:13 hust_zk 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 自定义栏目使用 在文章里面 没有的话在显示选项里面勾上 get_post_meta($post->ID,"thumbnail",true) 可以通过这个来调用 今天又学了一招。。。。 阅读全文
posted @ 2012-09-14 12:36 hust_zk 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 如何为WordPress主题增加特色图像调用WordPress新版本中增加了特色图像的功能,但只有主题支持时才会显示出这个功能 ,如何在主题中启用这个功能呢?1、在主题functions.php中加入if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' );}开启特色图像功能2、之后在模版主循环后面适合位置加入调用代码<?phpif(has_post_thumbnail()) { the_post_thumbnail();} else { e 阅读全文
posted @ 2012-09-14 11:13 hust_zk 阅读(246) 评论(0) 推荐(0) 编辑