½ÌÄãÈý²½ÓÅ»¯wordpress²©¿Í
wordpressÕ⼸ÄêºÜ»ð£¬ÓÉÓÚÆ俪·ÅÐÔ¼ÓÖ®·á¸»µÄÄ£°å£¬Ö§³Ö²å¼þÍØÕ¹£¬Ô½À´Ô½¶àµÄÈ˽¨Á¢²©¿Í¿ªÊ¼Ñ¡Ôñwordpress¡£µ«ÊÇÈÔÈ»Óв¿·ÖÅóÓѳõ´Î½Ó´¥WP²©¿Í£¬²»Á˽âÈçºÎÈ¥ÓÅ»¯£¬±ÊÕß½ñÌì¾ÍÕâ¸öÎÊÌâÀ´Ì¸Ì¸ÐÂÊÖÈçºÎ×öºÃwordpressÓÅ»¯¡£
Ò»¡¢Í¨¹ý´úÂëÌí¼Ó¹Ø¼ü´ÊºÍÃèÊö±êÇ©
wordpressÔÚ±êÌâºÍÃèÊö±êÇ©ÉϵÄ×ö·¨ÊDZȽÏÆæ¹ÖµÄ£¬Ëû×Ô´øµÄ³ÌÐòÊÇûÓйؼü´ÊºÍÃèÊö±êÇ©£¬¶øÎÒÃÇÈç¹ûͨ¹ý²å¼þÌí¼ÓÓָоõ»áÍÏÂýËٶȣ¬»ùÓÚ´Ë£¬ÎÒÃÇ¿ÉÒÔʹÓôúÂëÀ´½â¾öÕâ¸öÎÊÌ⣺
//ÅжÏÊÇ·ñΪÊ×Ò³
if £¨ is_home £¨£©£©
{
$description = “ÕâÊÇÊ×Ò³ÃèÊö±êÇ©”;
$keywords = “ÕâÊÇÊ×Ò³¹Ø¼ü´Ê±êÇ©”;
//ÅжÏÊÇ·ñΪÎÄÕÂÒ³
}
else if £¨ is_single £¨£©£©
{
if £¨ $post->post_excerpt£©
{
$description = $post->post_excerpt;
} else {
$description = mb_strimwidth£¨strip_tags£¨apply_filters£¨‘the_content’£¬$post->post_content£©
£©£¬0£¬220£©;
}
$keywords = “”;
$tags = wp_get_post_tags£¨$post->ID£©;
foreach £¨$tags as $tag £© {
$keywords = $keywords.$tag->name.“,”; }
//ÅжÏÊÇ·ñΪ·ÖÀàÒ³
} else if £¨ is_category£¨£©£© {
$description = category_description£¨£©;
}
?>
ÍƼöÐÅÏ¢
- Seo×Ô¶¯»¯Ö®Ò» tagºÍÄÚÈÝÒ³¹ØÁªµÄ×Ô¶¯ÓÅ»¯
- GTmetrixרҵµÄÃâ·ÑÍøÒ³ÔØÈëËÙ¶ÈÆÀ²â
- ÌáÉýÍøÕ¾¹Ø¼ü´ÊÅÅÃûµÄ5¸ö²½Öè
- Ëѹ·ÍøÒ³ÆÀ¼¶¹¦ÄÜÉý¼¶ÓÐËƹȸèPR
- Óð룺seoer±Ø±¸¸ß¼¶ËÑË÷ÒýÇæÖ¸Áî½ø½×£¨ÉÏ£©
- SEO·þÎñÉ̵ÄÀ§»óÓë¿ÉÒɵÄËÑË÷ÒýÇæÓÅ»¯·þÎñ
- dz̸ÍøÕ¾SEOerµÄÕæÕý¾³½ç
- ÓÑÇéÁ´½Ó²¢²»ÊÇSEOµÄÍâÁ´½¨ÉèÄ¿±ê
- °Ù¶ÈÊÕ¼ϰ¹ßʵÑ鱨¸æ
- ½ÌÄãÈýÕÐÇáËÉ¢¶Ï³¤Î²¹Ø¼ü´Ê(ÏÂ)
ÈÈÃÅÐÅÏ¢
- 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ÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ÀÏÕ¾³¤½»ÄãÈçºÎ×öºÃ×ö¾«ÍøÕ¾ÄÚÁ´¹¤×÷
- ½áºÏSEOÓÅ»¯ÐÔÄܵÄCMSÌõ¼þ̸¼¸µã
- ÍøվǰÆÚ²»½¨ÉèÄÚÁ´ÊÇ·ñÕæµÄÓÐÀûÓÚÊÕ¼£¿
- ËÑË÷ÒýÇæÓÅ»¯ÖеÄÍøÕ¾ÄÚÈÝ¡¢½á¹¹¼°¹Ø¼ü×Ö
- ÍøÕ¾±êÌâ±êÇ©ÓÅ»¯´óÓÐѧÎÊ
- ·ÖÎöÓ°ÏìÍøÕ¾ÓÅ»¯µÄ30ÌõÒòËØ
- ×öSEO²»ÒªÍ¶»úÈ¡ÇÉ Ï¸½ÚºÍÖ´ÐÐÁ¦·Ç³£ÖØÒª
- ¡¶´óÐÍÍøÕ¾SEOÓÅ»¯Êµ¼ù¡·Ñ§Ï°·ÖÏí
- Ò»¸öÍøÕ¾ÍêÕûÏêϸµÄSEOÓÅ»¯·½°¸
- ×öºÃ³¤Î²¹Ø¼ü´Ê£¬ÎªÍøÕ¾ÌáÉýÁ÷Á¿
ÆÀÂÛ