Systems Thoughts

Try to think everything systematically

Archive for the ‘wordpress’ Category

Days ago I found the “previous entries” link on my index page didn’t work, the link connected correctly to “page/X/” but no pages were shown. Since I just upgraded my wordpress to 2.3.3 it is unclear whether the problem is caused by the bug of wordpress or not.

Search results helped nothing with this issue, changed the template back to default showed the same error pages. But suddenly I recalled that maybe it has something to do with those permentant link migration plugins. So I turned off all those plugins I kept from 2.3.

Now problems had been solved and finally I can read my old articles agian….

BTW: Two plugins caused this problem: Permalink Redirect, Dean’s Permalinks Migration. Or I should not use them in the same time?

Comments (1) Posted on Thursday, February 28th, 2008

原来的模板让我改的乱七八糟,这次拿一个简单点的开刀吧。模板名叫Simple La Bob,从compatible with WordPress 2.3.上找到的适合WordPress 2.3使用的模板,以后我会记录每一次改动。

这一次先对标题栏做点改动。原来的标题栏对搜索抓录不利,因为把文章名放到博客名后边了。

在header.php中找到一下语句:

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

我把它改成了:

<title><?php if ( is_single() ) { wp_title(''); ?> at <?php } bloginfo('name'); ?></title>

这样每次就会显示“文章名 at 博客名”这种形式。如果改成下面这样:

<title><?php wp_title(''); ?><?php if(wp_title(' ', false)) { echo ' | '; } ?><?php bloginfo('name'); ?></title>

每次便会显示“文章名 | 博客名”这样。这样你的博客在搜索结果里出现的机会就更大了。

Comments (0) Posted on Friday, October 5th, 2007