WordPressÔÚÎÄÕÂÖÐÏÔʾ¹ã¸æ ·ÇÉÏÏ¡¢×óÓÒ½Ç
¡¡¡¡Ö®Ç°¿´µ½ÓÐЩÍøÕ¾µÄ¹ã¸æÊä³öºÜÌر𣬾ÍÊÇÔÚÎÄÖÐÏÔʾ¹ã¸æ£¬ÎÒ˵µÄ²»ÊÇÉÏÏ¡¢×óÓÒ½ÇÖ®ÀàµÄÏÔʾ·½·¨¡£Òª¿´Ð§¹û£¬´ó¼Ò¿ÉÒÔ¿´BlueFateµÄ²©¿ÍÎÄÕÂÖÐÏÔʾµÄ¹ã¸æ¡£ÒòΪÎÒ²»ÊǸã³ÌÐòµÄ£¬²»¹ý»¹ÊÇÁ˽âÒ»µãphp£¬ËùÒÔÑо¿ÁËÀÏ°ëÌì²Åд³öÀ´Ò»¸öÔÚÎÄÖÐÊä³ö¹ã¸æµÄ´úÂ룺
¡¡¡¡ //Êä³öÎÄÕÂÄÚÈÝ£¬µ±ÓÐÓöµ½µÚÒ»¸ö
µÄʱºò£¬ÏÔʾ¹ã¸æ$form = 0;
$contents = get_the_content();
$lenght = stripos($contents,"");//ÒÔÀ´·Ö¸î×Ö·û´Ü£¬²¢ÒÔÊý×ÖÐÎʽ·µ»ØËùÔÚµÄλÖÃ
$lenght = $lenght + '4';//¼ÓÉÏÕ¾µÄ×Ö·ûÊý
$contents1 = substr($contents,$form,$lenght);//½ØÈ¡ÎÄÕÂ
$contents2 = substr($contents,$lenght);
if (get_option('swt_adt') == 'Hide' || strlen($contents)<=$lenght || $lenght < 20) { //Êä³ö¹ã¸æ
the_content('');
}
else {
echo $contents1;//Êä³öÄÚÈݵÄÇ°°ë²¿·Ö
include(TEMPLATEPATH . '/includes/adwz.php');
echo $contents2;//Êä³öÄÚÈݵĺó°ë²¿·Ö
}
?>
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ