标签归档:模板

推荐一款打印快递单软件

推荐一款打印快递单软件,四五打印助手http://www.siwuprint.com/。当然他不只是打印快递单。不过我用它来打印快递单。免费软件,有些广告,界面美观有待提高,现成模板很多,设计调整还算比较方便。
可以把数据用bas64编码的方式提交给该软件,到预览界面,再点击打印按钮就直接打印。
推荐!

如何在wordpress的the_excerpt中使用nextgen-gallery(NGG)图片

NextGEN gallery是个很不错的wordpress相册插件。
新版本的wordpress有了一个the_excerpt的方法可以用,原来就有?不知道。
the_excerpt主要是调用原来的摘要部分,供模板调用。但是和the_content的区别是,the_excerpt里面不支持nextgen-gallery(NGG)的singpic,gallery等标签不能用。如果在模板里面用了the_excerpt,但是又想显示图片就不方便了。
用的是1.1.0版本,查了一下代码,找到
lib\shortcodes.php

class NextGEN_shortcodes
大概在18行,看到一行注释,说如果在the_excerpt里面用会有不期望的输出。如果你高兴就去掉下面的注释。

 
// add_filter('the_excerpt', array(&$this, 'convert_shortcode'));
// add_filter('the_excerpt', 'do_shortcode', 11);

改成


add_filter('the_excerpt', array(&$this, 'convert_shortcode'));
add_filter('the_excerpt', 'do_shortcode', 11);

测试可以,没发现啥异常。先用着吧。
——————–
新的版本已经去掉了这2行,要自己加进去。