һ
 ע

QQ¼

ֻһٿʼ

ƼĶ

+

[WordPress] wordpressҳtitle

[]
23505 websjy 2016-4-12 09:42:26
| ʾȫ¥
1F

ϵ½עᣬύѣø๦ܣϴزIJޣ

Ҫ ¼ ſػ鿴ûʺţע  

x
WordPressС˵վѯôҳtitleӸķƣʾ__վtitleʽʵַףֻҪheader.phpļ<title></title>ǩҳжϴͷƵ뼴ɡ
ڵǰheader.phpļҵ<title></title>ǩ´룺

  1. <?php
  2.         if ( is_single() ) {
  3.                 single_post_title();
  4.                 echo "_"; foreach((get_the_category()) as $category) {
  5.                         echo $category->cat_name;  
  6.                 }
  7.                 echo "_";bloginfo('name');
  8.         }
  9. ?>
ƴ
ע⣺ЩwordpresstitleDzʺֱĴģҪʵ²ͻ²ҪõtitleʽģֲģֱӰ<title></title>ǩмĴ뻻²Ͱɸtitle룺
  1. ?php
  2.         if ( $paged > 1 ) { echo (''); echo ($paged); echo 'ҳ_';}
  3. ?>
  4. <?php
  5.         if (is_home () ) {
  6.                 bloginfo('name'); echo "_"; bloginfo('description');
  7.         } elseif ( is_category() ) {
  8.                 single_cat_title(); echo "_"; bloginfo('name');
  9.         } elseif (is_single()) {
  10.                 single_post_title(); echo "_";foreach((get_the_category()) as $category) echo $category->cat_name; echo "_"; bloginfo('name');
  11.         }elseif(is_page()) {
  12.                 single_post_title(); echo "_";bloginfo('name');} elseif (is_search() ) { bloginfo('name'); echo "search results:"; echo wp_specialchars($s);
  13.         } else {
  14.                 wp_title('',true); echo "_"; bloginfo('name');
  15.         }
  16. ?>
ƴ

վײ⣬Ƿdzõģʾվhttp://www.boai525.com

Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ
fhuj3d96 2016-12-3 06:30:20
| ʾȫ¥
2F
ǺܺõӶ
ȷӡˢ http://www.bjard.com
ӡˢ http://www.bjard.com
ȷֽ䳧 http://www.bjard.com
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
fhuj3d96 2016-12-5 08:14:42
| ʾȫ¥
3F
澫񣡣
http://www.bjard.com/bjysc/383.html
http://www.bjard.com/bjysc/384.html
http://www.bjard.com/bjysc/385.html
http://www.bjard.com/bjysc/386.html
http://www.bjard.com/bjysc/387.html
http://www.bjard.com/bjysc/388.html
http://www.bjard.com/news/261.html
http://www.bjard.com/news/262.html
http://www.bjard.com/news/263.html
http://www.bjard.com/news/264.html
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
fhuj3d96 2017-1-9 02:16:50
| ʾȫ¥
5F
֧֣Ϊ̫
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
fhuj3d96 2017-2-14 09:30:42
| ʾȫ¥
6F
лл¥dz
          http://www.hmcsq.com/
          http://www.hmcsq.com/
          http://www.hmcsq.com/
          http://www.hmcsq.com/
          http://www.hmcsq.com/
ϸ          http://www.hmcsq.com/
          http://www.hmcsq.com/
          http://www.hmcsq.com/
ţ          http://www.hmcsq.com/
Դ΢http://weibo.com/techued Դ΢Źںţweb-tech
ʹõ ٱ ظ ֧
б

ֹ

²

̳¡ͼƬѷϴվԭתԻ,µİȨԭ
վַİȨ֪ͨǵĹԱ,Ա(Email:admin@websjy.com)ʱȡȨɾ
ܾκκʽڱ̳л񹲺͹ִ!

QQ| 42011102000510|Archiver|ֻ|Դ ( ICP14013341-1

GMT+8, 2017-12-13 23:40

Powered by Discuz! X3.2

ԴԴվ  ԴAPPӦ֮

ٻظ ض б