wordpress部落格的post 標題,wordpress部落格post
使首頁的標題不能串連到文章,只能通過閱讀更多進入文章,給有特殊需要的人。
歡迎訪問:
www.findspace.name
I got it.
In linux:
using
find .|xargs grep -ri "<?php the_permalink()"
in the themes folder to find which one quote the link.In my themes I found that :
./content.php: <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
and there're more content .....
So I found it and delete the
href="<?php the_permalink(); ?>"
ok!
汗死,本來是發在stackoverflow上問的,然後自己解決了,要回答的時候,,被提示這個與programing無關,,,,,儲存到部落格吧。。。
怎把wordpress的最新摘要顯示在主站首頁
前面的不會
靜態化可以在永久連結裡修改
比較流行的Permalinks設定方案:
類似“/2007/03/15/post-name/”式目錄結構(例子:WordPress.com) Permalinks寫法:/%year%/%monthnum%/%day%/%postname%/
類似“/2007/03/15/post-name.html”式目錄結構(例子:boingboing.net) Permalinks寫法:/%year%/%monthnum%/%day%/%postname%.html
類似“/2007/03/post-name/”式目錄結構(例子:WordPress.org blog) Permalinks寫法:/%year%/%monthnum%/%postname%/
類似“/2007/03/post-name.html”式目錄結構(例子:Blogger、TypePad) Permalinks寫法:/%year%/%monthnum%/%postname%.html
類似“/123.html”式目錄結構(例子:livejournal、百度空間) Permalinks寫法:/%post_id%.html
我使用的“/category/post-name.html”式目錄結構 Permalinks寫法:/%category%/%postname%.html
都可以靜態
wordpress分類目錄作為菜單怎更改分類目錄的title
用外掛程式,Category Meta plugin
非外掛程式,看下面。
<!--在主題目錄下header.php中的<title>....</title>標籤之中修改成你想要的形式。可以直接定義,也可以用get_option()的方式來擷取顯示-->//(一)用get_option()的方式
//先瞭解下get_option()函數的格式:
<?php echo get_option($showsth); ?>或者<?php echo get_option(“showsth”); ?>
這裡$showsth可以是自己定義,具體操作可以到wp_options表裡查詢;
比如<?php echo get_option("blogname"); ?> //得到你的blog的名
<?php $admin_email = get_option(‘admin_email’); ?> //得到你的blog的email,有人發帖就會給自己發郵件。
<title><?php if ( is_home() ) {
bloginfo('name'); echo " - 隨便自訂"; //這裡判定如果是首頁,標題就顯示:站名 - 隨便自訂
} elseif ( is_category() ) {
single_cat_title(); echo " | 隨便自訂"; //這裡判定如果是分類目錄,標題就顯示:分類目錄名稱 | 隨便自訂
} elseif (is_single() || is_page() ) {
single_post_title(); echo " - 隨便自訂"; //這裡判定如果是文章頁,標題就顯示:文章標題 - 隨便自訂
} else {
wp_title('',true);
} ?></title>
3.在或者就是用All in one seo外掛程式,全部頁面都可以自訂titile、keyword、description。