WordPress-AppCloud主题
推荐个主题,AppCloud:

是商城类型的模板,看起来改造成自己用的模板也还不错,有兴趣的可以看下,不过记得看下版权,版权啊版权。
Demo地址:http://demo.icreativelabs.com/ecommerce/
Download地址:http://portfolio.icreativelabs.com/wp-content/plugins/download-monitor/download.php?id=Download+Appcloud
WordPress-Tipz Theme Released
Learned from http://designdisease.com/blog/tipz-theme-released/?utm_source=rss&utm_medium=rss&utm_campaign=tipz-theme-released
designdisease.com又发布了一款Theme,这款主题颜色比较热情,挺好的,下边是Demo和下载地址。
The theme is fully widgetized. A special feature of this theme as we use in many of our themes is the logo changer. You can use the default WordPress setting (“blog name”) or you can use your own logo. Upload your logo in the root folder of Tipz theme and name it logo.png or you can use the logo.psd as a template. You will find the source in the root folder of the Tipz theme..
- View theme demo
- View theme demo (mirror)
- Download the theme (.zip package)
This work is licensed Creative Commons Attribution-Share Alike 3.0 License. This means you may use it, and make any changes you like. Just leave the credits on footer if you respect the designer’s work.
Enjoy !
WordPress-一些奇怪的错误Some Special Error
1.打开PHP页面,出现500错误。
用WP开发的时候碰到个奇怪的问题,3个wp-开头的文件夹下的全部PHP文件都无法访问,报500错误。
到底是个怎么回事呢,原来是因为文件的权限设置不当导致的,777的属性在某些系统下就会出现这个鬼问题!
建议解决方法,修改wp-开头的文件夹权限为755,里边的文件建议改成644属性。当然,uploads文件夹例外。
2.Warning: implode() [function.implode]: Invalid arguments passed in xxx(your url)/post.php on line 1762
在编辑page的时候会出现这个问题,但是post里却一切正常,恩,这个是升级2.8造成的问题,可能的原因有插件冲突,文件带了dom标志等等。
如果是插件冲突,请关闭插件。如果是文件带了dom标志,去DW里去掉。如果是升级2.8造成的,重新上传wp-include下边的文件,如果还不能解决问题,重新传全部文件吧……
WordPress-2次开发常用函数
全函数列表请参见这里:《WordPress模板标签Template_Tags》。
这里只列出最常用的几个。先是重要的bloginfo(),不直接echo数值的函数为get_bloginfo();恩,不少函数都是按照这个规则写的,PS:并不是全部!echo出函数值的函数为xxx()的话,那么不echo出结果值的的函数为get_xxx()。
该函数范围的是WordPress的配置参数,主要参数和值举例如下,常用的黑体标出:
admin_email = admin@example
atom_url = http://example/home/feed/atom
charset = UTF-8
comments_atom_url = http://example/home/comments/feed/atom
comments_rss2_url = http://example/home/comments/feed
description = Just another WordPress blog
home = http://example/home这个是网站首页地址
html_type = text/html
language = en-US
name = Testpilot网站名称
pingback_url = http://example/home/wp/xmlrpc.php
rdf_url = http://example/home/feed/rdf
rss2_url = http://example/home/feed
rss_url = http://example/home/feed/rss
siteurl = http://example/home也是网站地址
stylesheet_directory = http://example/home/wp/wp-content/themes/largo
stylesheet_url = http://example/home/wp/wp-content/themes/largo/style.css主题文件夹下的style.css地址
template_directory = http://example/home/wp/wp-content/themes/largo主题包地址
template_url = http://example/home/wp/wp-content/themes/largo
text_direction = ltr
url = http://example/home
version = 2.7
wpurl = http://example/home/wp
举例,bloginfo("wpurl ")会输出“http://example/home/wp”。
WordPress-Theme的制作
以下内容建立在有部分HTML基础下,如果有疑问可以Twitter我,EMAIL我,MSN我,留言我,电话我,etc,但是不要QQ我~
WP的主题所在文件夹为XXX\wp-content\themes\,里边每个包都是目录(如果正常的话)。
先来讲下主题的组成,可以先参考这个文章《WordPress -Template System模板系统》。
从该文章中我们可以发现,最最最简单的WP皮肤只需要一个文件,index.php,出于维护和多方合作开发以及修改的简便性来说,个人觉得一个主题至少应该分成以下几个部分:
header.php,里边放HTML的头部,一般是包含文档声明到body开始处,有时候也会包含菜单部分。
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>< ?php bloginfo('name'); ?> < ?php if ( is_single() ) { ?> Blog Archive < ?php } ?> < ?php wp_title(); ?></title>
..................
<body>
