Blog Archives

[攻略]怎样将WordPress主题提交到官方目录

历时30天,随着WordPress主题:Dot-B 通过了官方的审核,我正式向大家分享整个提交的流程和经验。 准备篇:(WordPress 以下简写WP) 首先,一定要保持头脑的清醒,提交主题的念头如果只是一时冲动,抑或是单纯为了好玩,建议不要耗费太多时间在此 了解提交主题的目的:开源精神,分享快乐,交流技术,贡献WordPress社区,如果是其他商业目的也可 对WP长久的热情,否则一个缺乏后期维护的主题必将为时间所淘汰 规范且良好的代码书写习惯和格式,以及较好的英文口语都能使你与WordPress审核人员的交流更为有效 一个已完成待发布的WP主题,一个WordPress.org 帐号,并绑定一个常用邮箱

WordPress Theme: Dot-B release

若遇(简体/繁体)乱码问题,请升级至 1.8.8 版本即可。 Theme Name | 主题名: Dot-B Version | 版本: 1.8.7 (Last update 2012.02.20 21:31) Description | 描述: A simple, fresh and dot-decorated looking theme with a lot of basic theme-custom options  prepared for you to start you site. You can use those features : custom-background, custom-menu, drop-down menus, custom-header, widgets… and much more. …

解决Notice: Undefined index: widget_id in

[存档,分享] WordPress报错内容: Notice: Undefined index: widget_id in ..\wp-includes\default-widgets.php on line 528 错误触发条件:(本问题多为在提交主题前的调试中遇到) 开启 wp-config.php 中的 define(‘WP_DEBUG’, true); sidebar.php 或者任意地方调用 the_widget(); 且没有赋予 widget_id 参数就会警告。 这真的是一个小问题,本来根本不会出这个警告的,谁叫WordPress the_widget官方文档  里不会提到触发Notice 的错误呢,搜索到另一个老外调试主题也遇到了这个问题 here 。而且网上没有解决办法,于是我看了 default-widgets.php 的参数,立马石化,发现原来文档参数写的不全。 解决方法: 调用 the_widget 时务必将参数加全,否则尽管不影响主题正常使用,但是提交带有警告的主题给WordPress官方是不可行的。 <?php the_widget(‘WP_Widget_Recent_Posts’, ‘number=5&title=21212′, ‘before_title=<h3 class=”widget_title”>&after_title =</h3>&widget_id=1234′); ?> <?php the_widget(‘WP_Widget_Recent_Comments’, ‘number=5&title=21212′, ‘before_title=<h3 class=”widget_title”>&after_title =</h3>&widget_id=1235′); ?> 就是这个 &widget_id=1234 缺失导致的问题的出现。

WordPress新主题Dot-B预告

已发布更新: WordPress Theme: Dot-B 发布 ———- RT 高清无馬大图, 多做事少说话。 如果有好的建议,不妨告知。thx.