Category Archives: Wordpress

WordPress Windows 版

← Continue Reading
WordPress 是最流行的一款开源博客撰写、发布和内容管理系统。深入全面的插件和主题架构为其提供了多种可能性,WordPress 在 Microsoft Web 平台上同样表现良好。Microsoft 与 WordPress 社区合作,为 WordPress 提供了更加强大的力量和更加丰富的功能——敬请关注最新作品。 传送门

推荐一款代码插件crayon-syntax-highlighter

← Continue Reading
先放上下载地址,我是在深度Linux的博客里看到的,感觉挺好看就找了下,喜欢的就去看吧 下载地址

删除默认小工具-功能下面的多余链接!

← Continue Reading
首先找到WP根目录下面的wp-includes文件夹,查找文件default-widgets.php 找到297-299行如下代码 <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php echo esc_attr(__('Syndicate this site using RSS 2.0'));...

Willin 回复邮件通知样式修改版

← Continue Reading
此修改版乃是Evlos修改的,我留下来备忘!想要的朋友拿去吧   /*留言邮件通知*/   /* comment_mail_notify v1.0 by willin kan. (有勾選欄, 由訪客決定) */   function comment_mail_notify($comment_id) {      $admin_notify = '1'; // admin 要不要收...

JS代码帮你自动填WP留言信息

← Continue Reading
还在为每次留言都必须填写信息而烦恼嘛?试试下面的代码吧! 代码由小可提供,下面代码里的信息就是他的(邮箱我就用XXX代替了),我就不变了 javascript: void function() {     var formArray = ["commentform", "comment_form","frmSumbit"],     nameArray = ["author", "auth...

WPTheme文件

← Continue Reading
一套完整的WordPress模板应至少具有如下文件: style.css : CSS(样式表)文件 index.php : 主页模板 archive.php : Archive/Category模板 404.php : Not Found 错误页模板 comments.php : 留言/回复模板 footer.php : Footer模板 header.php : Header模板 sideb...

wp_nav_menu函数说明

← Continue Reading
简单调用如下: <?php  wp_nav_menu($args);?>     wp_nav_menu参数详解:   $menu_args = array(     //最外层容器的标签名,默认div     'container' => 'div',     //最外层容器的class名     'container_class' => 'mai...

给WordPress quicktags编辑器添加自定义按钮

← Continue Reading
网上采摘的,留着以免以后忘掉不好找^ 首先将下面代码加入您主题的Functions.php文件中 add_action('admin_print_scripts', 'my_custom_quicktags');    function my_custom_quicktags() {        wp_enqueue_script(            'my_custom_quick...

给你的博客文章添加一个简易的计数器

← Continue Reading
今天群里有人问这个问题……我给他推荐了 知更鸟的文章,他的文章是讲为博客添加计数器,但他是代码小白只好在这里发发文章了…… 将下面的代码添加到你的主题模版的single.php(这个是文章页模版)文件中 <?php $counterFile = "counter.txt";    function displayCounter($counterFile) {    $fp = fop...

wordpress二次开发中常用到的代码很实用

← Continue Reading
1、获取特定时间内文章的代码 在你想显示特定时间内文章的地方粘贴下列代码,把第三行换成你需要的时间即可。 function filter_where($where = ") {   $where .= " AND post_date  >= '2009-05-01' AND post_date <= '2009-05-15'";    return $where;    }    ...