用WordPress短代码在博客任意部分添加广告

其实不怎么满意现在文内广告的位置,本来是想通过判断WP中的more标签位置插入广告的,奈何自己总是很懒,加上毕业设计的任务压在头上,也就作罢了,忽然想起WP的短代码功能似乎可以实现此功能,于是翻了翻WordPress Popular Posts的代码,找出了此段代码,这样就可以轻松在博客文章或者WordPress侧栏中任意位置添加Adsense广告了。 代码很简单,把以下的代码加入到主题的functions.php中: function showad() { return ‘<div class=”advertise”> //这里放你的

WordPress Tricks: Let Author Role See His Own Posts

WordPress have different user roles. These roles let administrator manage blog contributors works better. Author role in WordPress can not see much information from the dashboard. Sometimes, we may want to see what we have published. At that time, we can uses the following code to let Author see their own posts list.

WordPress Tricks: Automatic Add nofollow Tag for External Links

When we write article, we often uses some external links to extent our content. These links will help other websites build search engine weightiness. If you don’t want to help your competitors, you should add “nofollow” to these links. One idea is to add rel=”nofollow” on each links manually. But, it will be a tough task. […]

Free WordPress Theme SimpleBlue

Free Wordpress Theme SimpleBlue

Description: SimpleBlue is my first free widget supported Wordpress theme.  It’s simple but stylish. I used bold design on my color selection. A dark gray  background with a deep blur navigation bar makes SimpleBlue very bright-colored. I build 6 widget column for your convenience.  There are three in the sidebar. The main widget column is 300px wide and […]

Key points in planning a WordPress powered blog

Before you starting to run a value added wordpress powered blog, it is important to begin with a full understanding of planning considerations going in and what has to be accomplished in the overall scheme of things. Planning your overall strategy will help you reach your goal in the short future after you started blogging. […]

WordPress主题同时支持嵌套评论与邮件回复

本着折腾到底不罢休的精神,又给博客做了个手术,这手术做的可不轻松,啃下了WP最艰难的部分。本次修改主要是为了支持嵌套回复,也是为了提高用户体验的一个重大举措吧,其实要纯粹的支持嵌套回复功能倒是简单,然而同时要正常使用ThinkAgain的Mail to Commenter插件来邮件回复的时候,问题就会随之而来了。昨晚折腾到半夜三点,终究是把问题给解决了。关键点在于如何让主题支持嵌套以及如何支持邮件回复。

Functions in WordPress head and their parameters

I started make my free WordPress themes few days ago. While I said I’ll publish my first theme quickly, I have no time to build it. I began this work on my holiday. Now I ‘ll share some expiriences. First post, I will introduce you some head functions used in wordpress themes and their parameters. […]

WordPress主题头部函数

最近才开始摆弄Wordpress主题,之前说过要制作个主题的,只是一直不得空,现在开始制作自己的主题,也把自己在制作Wordpress主题中遇到的问题和解决方法分享一下。第一篇先来说说wordpress主题制作中头部用到的函数及其参数,注意这里说到的头部指<head>与</head>之间的部分。 至于说到用法,以下所有函数的使用方式都如:<?php wp_title(); ?>其中wp_title()修改为你需要用到的函数。

WordPress与Z-blog对比

最近开始玩wordpress,觉得wp确实是很强大的。zblog应该来说是国内非常不错的一款博客程序,在这里我把wordpress和zblog做个简单的对比。本文主要从6个方面对wp与zblog这两款博客系统进行一番选择。 基础构架 wp采用php+Mysql的构架,而zblog使用asp+acess的布局。 从我在”PHP、ASP与JSP的比较”一文中来看,php较之asp的优点在于安全性好、函数支持多、厂商支持多和支持XML,而缺点在于扩展性较差。 因而从个人角度来说,使用php+Mysql构架的WordPress会具有天生的优势