发布于

最近工作很忙的说,说实话,一直想来一个Gap Year.

90后坐在办公室窝着实在是对生命的极大浪费.

同事要帮忙调出”[分类名]标题”这样的文章,当然啦,用织梦.

相关标签:

{dede:likearticle col=1 row=5 titlelen=50}
    [[field:typename/]][field:title/]
{/dede:likearticle}

修改 include\taglib\likearticle.lib.php 102行,

$typeid = " AND arc.typeid IN($typeid) AND arc.id<>$arcid ";

//注释掉即可

改成

$typeid = " And arc.id<>$arcid ";

IN($typeid)限制了范围,织梦加油!

发布于

转眼折腾了2年WP了,也算小有收获。

前些日子于无聊蛋疼之中注册了ifffff.com,别数了,5个F,注册此域名也是为了呼应@曾哥@木木老湿(躺着中枪),免得他们在浩瀚的互联网之中过分寂寞,com是王道啊,哈哈。

搬家可谓是一个费事耗力的工作,最关键的就是下面的几条SQL语句了:

UPDATE wp_options SET option_value = replace(option_value, 'old.com', 'new.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'old.com','new.com');
UPDATE wp_posts SET post_content = replace(post_content, 'old.com', 'new.com');

在原来的域名根目录做个301

RewriteEngine on
RewriteCond %{http_host} ^ifffff.com [NC]
RewriteRule ^(.*)$ http://ifffff.com/$1 [L,R=301]

搞定,继续走起!

© 2008-2015 fanwenbin.com | Theme: 26
Powered by Wordpress