按月归档:五月 2010

Opera代理


分享一个opera mini代理地址,我是在黑莓8700G上使用俄版operamini使用的:

http://o.014.cc

如果电脑上访问转向Google,可以正常使用。

这个代理是 2009年12月18日 建立的,看看能坚持到哪天不需要代理也可以访问,说这样的话我知道我在骗自己。


查看统计,我发现opera用户已经占了92%,而一部分用户则是使用Sony/Ericsson Browser (PDA/Phone browser)。

使用自定义字段给某篇的日志单独加载 Javascript 脚本

<?php
/*
Plugin Name: Custom Head
Plugin URI: http://fairyfish.net/2009/11/09/custom-head/
Description: 使用自定义字段给某篇的日志单独加载 Javascript 脚本,使用的自定义字段是 custom_head。
Version: 0.1
Author: Denis
Author URI: http://wpjam.com/
*/
add_action("wp_head","custom_head");
function custom_head(){
    if (is_single() || is_page()) {
        global $post;
        $custom_head = get_post_meta($post->ID, 'custom_head', true);
        echo $custom_head;
    }
}
?>

WordPress文章推迟10分钟在RSS feeds上显示

function publish_later_on_feed($where)
{ global $wpdb; if ( is_feed() )
{ // timestamp in WP-format $now = gmdate(‘Y-m-d H:i:s’);
// value for wait; + device $wait = ‘10′; // integer
// http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff $device = ‘MINUTE’;
//MINUTE, HOUR, DAY, WEEK, MONTH, YEAR
// add SQL-sytax to default $where $where .= ”
AND TIMESTAMPDIFF($device, $wpdb-&gt;posts.post_date_gmt, ‘$now’) &gt;
$wait “; } return $where; }
add_filter(‘posts_where’, ‘publish_later_on_feed’);

无觅相关文章插件,快速提升流量