featured content gallery 插件使用教程
为了实现首页的幻灯效果,需要安装 featured content gallery 插件。最新的是2.1版。 网上关于这个插件的安装和使用已经有不少的介绍。比如:这里 和这里 ,刚接触的朋友,可以先了解一下,不再重复。 自己按照这些介绍弄了很久,都没成功,最后终于成功了,总结一下遇到的问题: 1、featured content gallery 的控制面板里,填写相关参数后,保存后内容就变空了。 解决办法:下载最新2.1版本 2、各项设置都正确,但是仍然不显示幻灯效果 解决办法: 1)确保图片地址正确,在本机安装的,可以直接把图片拷贝到 【以wordpress装在D盘为例】D:\Program Files\xampp\htdocs\wordpress\wp-content\plugins\content-gallery下,图片地址应该是http://localhost/wordpress/wp-content/plugins/content-gallery/xxxx.jpg 2)图片大小应该与featured content gallery 设置相同。【没有测试不同大小有没有影响】 3)新建帖子时候,新建articleimg自定义字段,参数是图片地址。而且至少按此法方法发两个帖子才有效果。 4)很多朋友可能忽略了这一点:添加 <?php include(ABSPATH.'/wp-content/plugins/content-gallery/gallery.php');?> 到home.php 里或其他地方。【我一开始把这个加到page.php里,那样做是没有效果的】 我放在了home.php 里 <!--This section is where the Featured Content plugin is called.--> <?php include(ABSPATH.'/wp-content/plugins/content-gallery/gallery.php');?> </div> </div> <div id="homepageleft"> <!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.--> 上述设置完,就可以看到效果了。
在线求助关于这个插件Featured Content Gallery 的使用问题
这个插件 Featured Content Gallery里其中有个Category Name: ,如果是这个只想显示一个类别的内容,那么怎么写这个代码呢? 比如我博客里有好几个栏目,那么比如我想让他光展示cat=1的这个分类的内容,不展示其他分类的内容,怎么填写后面的那个呢
When marriage means medical bills
You won't have to pay your spouse's debts from before marriage, but you should be prepared for the shared expenses during matrimony, say Money's Ethicists You won't have to pay your spouse's debts from before marriage, but you should be prepared for the shared expenses during matrimony, say Money's Ethicists
Will your hometown be a boomtown again?
发布在 huandeng, 汽车数据库, 汽车视频, 汽车资讯, 汽车达人, 车友空间 | 一条评论 »
2009年12月15日为了实现首页的幻灯效果,需要安装 featured content gallery 插件。最新的是2.1版。 网上关于这个插件的安装和使用...... 更多
