- 博客(9)
- 资源 (27)
- 收藏
- 关注
原创 J2EE项目中使用Spring 4及.properties文件UTF-8编码问题
Spring framework可以到此处下载:http://maxwoods.ctfile.com/u/758954/11098882,这里使用Spring 4。新建一个j2ee的web工程,将压缩包中对应的jar包放到WEB工程的lib子目录中,如/WebContent/WEB-INF/lib。修改web.xml文件,在web-app节点加入对应配置: org.spri
2015-11-25 22:20:26 3457
原创 如何在WordPress页面输出指定的调试信息
打开wp-blog-header.php文件,在尾部加入代码如下:<?php/** * Loads the WordPress environment and template. * * @package WordPress */if ( !isset($wp_did_header) ) { $wp_did_header = true; require_once( dir
2015-11-14 22:13:36 2523
原创 获取WordPress文章目录及其链接
获取文章分类使用get_categories,参考文档:http://codex.wordpress.org.cn/Function_Reference/get_categories获取文章分类的链接使用get_category_link,参考文档:http://codex.wordpress.org.cn/Function_Reference/get_category_link下
2015-11-13 22:31:13 1816
原创 WordPress主题支持导航菜单
在主题的functions.php中加入:register_nav_menus(array('primary'=> __('Primary Navigation')));在后台管理的主题设置里就可以看到菜单选项在header.php中加入:<?phpwp_nav_menu();?>就可以显示菜单,但是按默认方式显示的。
2015-11-07 23:54:20 1322
转载 自定义和扩展WordPress搜索功能
今天在做一个WordPress项目的时候,客户要求对wordpress默认的搜索功能进行修改,要求按照作者,按照文章标题,以及按照文章内容,这三个条件进行搜索。实现起来也比较简单,为了防止以后会用到所以来总结一下。 首先说下添加的方法,一是自己创建一个搜索框出来,二是使用wordpress默认的搜索框。代码如下: //直接使用默认搜索框放到你需要显示的地方即可">//自己手动
2015-11-07 22:00:51 2926
转载 WordPress 自定义搜索框
wordpress本事就自带搜索功能,但自带的搜索功能是全站搜索,不能完全满足用户需求,这就需要自定义解决。代码如下:全站搜索 "> 搜索 搜索某个分类 ">
2015-11-07 21:51:29 3536
转载 三种方法快速获取WordPress当前主题文件夹目录
制作WordPress主题时,在header.php和footer.php都需要引用当前主题文件夹内的一些文件,比如favicon.ico图标,js/jQuery……所以需要快速获取当前主题目录的路径。首先,看下如何调用本网站域名地址:获取主题目录也同样很简单,三种方法如下://第一种方法//第二种方法//第三种方法比如:想调用主题文件夹下的js文
2015-11-07 21:33:03 9483
原创 WordPress中修改固定链接导致无法显示文章内容的问题的解决办法
打开Apache服务器的配置谁httpd.conf1.找到下面一行#LoadModule rewrite_module modules/mod_rewrite.so把前面的#去掉2.找到AllowOverride None,替换为AllowOverride All然后重启Apache服务器,使rewrite生效
2015-11-07 17:54:08 966
转载 去掉 WordPress 3.1+版本顶部的admin bar管理工具
wordpress 3.1版本之后,为了方面WP用户,在博客首页、文章页、页面等顶部会默认显示一个admin bar,但并不是所有人都需要或喜欢这玩意,还好可以去掉admin bar功能,隐藏wp admin bar有两种方法,一种是通过后台设置,一种是在functions.php文件添加隐藏代码。wordpress 后台设置不显示wordpress admin bar1.登陆
2015-11-06 21:38:15 1193
Microsoft.Silverlight.5.Building.Rich.Enterprise.Dashboards
2012-03-02
iPhone and iPad Apps for Absolute Beginners iOS 5 Edition
2012-03-01
Wrox.Professional.CSharp.4.and.NET.4.Mar.2010
2012-02-25
VMware ESX Server: Advanced Technical Design Guide
2012-02-04
Professional Windows Phone 7 Application Development
2011-12-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人