è¿ä¸ªé®é¢åºè¯¥æ©å°±æ人åçäºï¼åªä¸è¿æ¯é对å
³é®è¯åæè¿°ï¼æ é¢ä½ èªå·±å å§ï¼æ¹æ³åèå¦ä¸ï¼
æè¯è¿ é½æ¯ææç
http://hi.baidu.com/%BA%BC%D6%DD%C0%EE%CF%E9/blog/item/a42dcc2606c0cce199250af2.html1. å¨ç½ç«æ ¹ç®å½ wp content/themes ä½ å®è£
ç主é¢ç®å½ä¸æ¾å° header.phpæä»¶ï¼ ä¸è¬å¨åå°å°±å¯ä»¥æ¾å°ãæ¾å°ä¸é¢ç代ç
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /
å¨ä¸é¢å ä¸å¦ä¸è°ç¨ä»£ç
<?php if (is_home()) { ?>
<meta name="keywords" content="ä½ ç½ç«çå
³é®å" />
<meta name="description" content="ä½ ç½ç«æè¿°" />
<link rel="canonical" href="<?php echo get_settings('home'); ?>" />
<?php } ?>
<?php if ( is_single() ) { ?>
<meta name="keywords" content="<?php $key="keywords"; echo get_post_meta($post->ID, $key, true); ?>" />
<meta name="description" content="<?php $key="description"; echo get_post_meta($post->ID, $key, true); ?>" />
<link rel="canonical" href="<?php echo get_permalink($post->ID);?>" />
<?php } ?>
2. ä¿®æ¹:ä½ ç½ç«çå
³é®åä¸ºä½ ä¸»é¡µæ³è¦çå
³é®è¯ çå
³é®åï¼ ä½ ç½ç«çæè¿°ä¸ºä½ ç½ç«çæè¿°ã 主页çå
³é®è¯åæ述就确å®äº
对äºæç« é¡µãéè¦è°ç¨ä¸ä¸èªå®ä¹æ ç®ï¼ å¨åå°é¡µé¢å³ä¸è§æå¼æ¾ç¤ºé项ï¼å¸¸è§ç¶æä¸å®æ¯å缩çï¼ãå¨èªå®ä¹æ ç®åºæä¸å¾ã
æ·»å 两个èªå®æ ç®ï¼å 为ä¸é¢ç代ç å·²ç»æ³¨éäºå¦ææ¯æç« é¡µ ï¼å°±è°ç¨èªå®ä¹åä¸çå
³é®è¯åæè¿°:
å称ä¸ï¼keywords å¼ä¸ï¼ä½ éè¦ç页é¢å
³é®è¯
å称äºï¼descroption å¼äºï¼ä½ éè¦ç页é¢æè¿°
åèèµæï¼http://hi.baidu.com/%BA%BC%D6%DD%C0%EE%CF%E9/blog/item/a42dcc2606c0cce199250af2.html