久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

WordPress: Separating Categories:修訂間差異

來自站長百科
跳轉(zhuǎn)至: 導航、? 搜索
無編輯摘要
無編輯摘要
?
第1行: 第1行:
__TOC__
__TOC__
Your posts are filed in different categories. Category information is freqently displayed in the [[WordPress:Post_Meta_Data_Section|post meta data section]] near your post or under the [[WordPress:Designing Headings|heading title]].? Different [[WordPress:Using Themes|WordPress Themes]] highlight the post meta data section in different areas.?
你的文章是用不同分類存檔的。分類信息通常顯示在文章附近的[[WordPress:Post_Meta_Data_Section|文章 meta 數(shù)據(jù)部分]]或者是在[[WordPress:Designing Headings|頭部標題]]下面。不同的[[WordPress:Using Themes|WordPress 主題]]會在不同的區(qū)域高亮顯示文章meta信息部分。
你的文章是用不同分類存檔的。分類信息通常顯示在文章附近的[[WordPress:Post_Meta_Data_Section|文章 meta 數(shù)據(jù)部分]]或者是在[[WordPress:Designing Headings|頭部標題]]下面。不同的[[WordPress:Using Themes|WordPress 主題]]會在不同的區(qū)域高亮顯示文章meta信息部分。
The display of the post categories is generated through the use of the <tt>[[WordPress:Template_Tags/the_category|the_category()]]</tt> template tag.? And you have the ability to style how these categories are displayed.


文章分類的顯示是通過<tt>[[WordPress:Template_Tags/the_category|the_category()]]</tt>模板標簽的使用來生成的。你可以設(shè)計這些分類如何顯示。
文章分類的顯示是通過<tt>[[WordPress:Template_Tags/the_category|the_category()]]</tt>模板標簽的使用來生成的。你可以設(shè)計這些分類如何顯示。
==Finding Your Categories Tag==
The placement of your categories tag may be in one place on the front page and in one or more different places in your single post page, so you may have to do some hunting to find your various categories tags.? You might also want to style one differently from the others, but you still have to find them.


==找出分類標簽==
==找出分類標簽==


你的分類標簽可能放在首頁面,也可能放在一個或多個單獨文章頁面的不同地方,這樣你可能不得不費點力氣來尋找你不同的分類標簽了。你可能還想設(shè)計一個與眾不同的標簽,但首先要把它們找出來。
你的分類標簽可能放在首頁面,也可能放在一個或多個單獨文章頁面的不同地方,這樣你可能不得不費點力氣來尋找你不同的分類標簽了。你可能還想設(shè)計一個與眾不同的標簽,但首先要把它們找出來。
The '''post meta data''' featuring your categories tag in your Theme is usually found on the <tt>index.php</tt>, <tt>single.php</tt>, or sometimes in the <tt>sidebar.php</tt> [[WordPress:Templates|template files]].? Open one or more of these template files and search for:
<pre><?php the_category() ?></pre>


在整個主題中,帶有你的分類標簽的'''文章 meta 數(shù)據(jù)''',通??梢栽?lt;tt>index.php</tt>, <tt>single.php</tt>,或者有時在<tt>sidebar.php</tt> [[WordPress:Templates|模板文件]]中可以找到。打開一個或者多個模板文件并搜索:
在整個主題中,帶有你的分類標簽的'''文章 meta 數(shù)據(jù)''',通??梢栽?lt;tt>index.php</tt>, <tt>single.php</tt>,或者有時在<tt>sidebar.php</tt> [[WordPress:Templates|模板文件]]中可以找到。打開一個或者多個模板文件并搜索:


<pre><?php the_category() ?></pre>
<pre><?php the_category() ?></pre>
Once you have found it, take another look at a generated web page of your site and determine how exactly you might want to change this information.


一旦找到之后,再看看網(wǎng)頁,然后決定如何更改這些信息。
一旦找到之后,再看看網(wǎng)頁,然后決定如何更改這些信息。
The <tt>[[WordPress:Template_Tags/the_category|the_category()]]</tt> template tag instructs the database to get the information regarding the post categories and display it at that point in your [[WordPress:Templates|template file]].? By default, it displays the list of categories with a space between each one.? You can change this by adding the parameter inside of the tag.? Let's begin with simple separators by playing with the category names: ''WordPress'', ''Computers'', and ''Internet News''.


<tt>[[WordPress:Template_Tags/the_category|the_category()]]</tt>模板標簽指導數(shù)據(jù)庫獲得關(guān)于文章分類的信息,并且在[[WordPress:Templates|模板文件中]]顯示出來。默認情況下,它顯示分類的列表,每兩個分類中間有空格隔開。你可以通過添加標簽內(nèi)部的參數(shù)更改它們。讓我們通過分類名:''WordPress'', ''Computers'', and ''Internet News'',從簡單的分隔器開始。
<tt>[[WordPress:Template_Tags/the_category|the_category()]]</tt>模板標簽指導數(shù)據(jù)庫獲得關(guān)于文章分類的信息,并且在[[WordPress:Templates|模板文件中]]顯示出來。默認情況下,它顯示分類的列表,每兩個分類中間有空格隔開。你可以通過添加標簽內(nèi)部的參數(shù)更改它們。讓我們通過分類名:''WordPress'', ''Computers'', and ''Internet News'',從簡單的分隔器開始。
==Simple Separators==
If you would like to have commas between the categories, the tag should read:
<pre><?php the_category(',') ?></pre>


==簡單的分隔器==
==簡單的分隔器==
第43行: 第21行:


<pre><?php the_category(',') ?></pre>
<pre><?php the_category(',') ?></pre>
And it would look like this:
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress, Computers, Internet News</div>


顯示結(jié)果如下:
顯示結(jié)果如下:


<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress, Computers, Internet News</div>
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress, Computers, Internet News</div>
If you would like to have an arrow, the tag would look like this:
<pre><?php the_category(' > ') ?></pre>
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress > Computers > Internet News</div>


如果你還想要有一個箭頭,標簽內(nèi)容如下
如果你還想要有一個箭頭,標簽內(nèi)容如下
第63行: 第31行:


<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress > Computers > Internet News</div>
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress > Computers > Internet News</div>
If you would like to have a [[WordPress:Fun_Character_Entities|bullet]], the tag would look like this:
<pre><?php the_category(' &amp;bull; ') ?></pre>
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress &bull; Computers &bull; Internet News</div>


如果你想有一個[[WordPress:Fun_Character_Entities|bullet]]符號,標簽內(nèi)容如下:
如果你想有一個[[WordPress:Fun_Character_Entities|bullet]]符號,標簽內(nèi)容如下:
第76行: 第38行:
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress &bull; Computers &bull; Internet News</div>
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress &bull; Computers &bull; Internet News</div>


If you would like the "pipe" ( | ) between the categories, the tag would look like this:
<pre><?php the_category(' | ') ?></pre>
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress | Computers | Internet News</div>


如果你想要在分類中間加入"pipe" ( | )符號,這個標簽內(nèi)容如下:
如果你想要在分類中間加入"pipe" ( | )符號,這個標簽內(nèi)容如下:
第87行: 第44行:


<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress | Computers | Internet News</div>
<div style="font-size: 105%; color: blue; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">WordPress | Computers | Internet News</div>
==Adding Text to Your Categories==
Would you like to make your post meta data look a little more ''textual'', informal and part of a paragraph rather than a list.? You can add an '''"and"''' to go between the categories like this:
<pre><p>You can read related subjects in
the <?php the_category(' and ') ?> categories.</p></pre>
<div style="font-size: 105%; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">You can read related subjects in the <span style="color:blue">WordPress</span> and <span style="color:blue">Computers</span> and <span style="color:blue">Internet News</span> categories.</div>


==向分類中添加文本==
==向分類中添加文本==
第106行: 第53行:


<div style="font-size: 105%; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">You can read related subjects in the <span style="color:blue">WordPress</span> and <span style="color:blue">Computers</span> and <span style="color:blue">Internet News</span> categories.</div>
<div style="font-size: 105%; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">You can read related subjects in the <span style="color:blue">WordPress</span> and <span style="color:blue">Computers</span> and <span style="color:blue">Internet News</span> categories.</div>
Or you can give them more of a choice and change the '''"and"''' to an '''"or"''':
<div style="font-size: 105%; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">You can read related subjects in the <span style="color:blue">WordPress</span> or <span style="color:blue">Computers</span> or <span style="color:blue">Internet News</span> categories.</div>


或者你可以給它們更多的選擇,把'''"and"''' 改成'''"or"''':
或者你可以給它們更多的選擇,把'''"and"''' 改成'''"or"''':
第115行: 第58行:
<div style="font-size: 105%; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">You can read related subjects in the <span style="color:blue">WordPress</span> or <span style="color:blue">Computers</span> or <span style="color:blue">Internet News</span> categories.</div>
<div style="font-size: 105%; font-weight:bold; margin:20px; padding: 20px; border:solid 1px blue">You can read related subjects in the <span style="color:blue">WordPress</span> or <span style="color:blue">Computers</span> or <span style="color:blue">Internet News</span> categories.</div>


The possibilities are endless.? Have fun and use your imagination!
可能性是無限的。運用你的想象力,玩的開心!
可能性是無限的。運用你的想象力,玩的開心!

2008年4月15日 (二) 17:32的最新版本

你的文章是用不同分類存檔的。分類信息通常顯示在文章附近的文章 meta 數(shù)據(jù)部分或者是在頭部標題下面。不同的WordPress 主題會在不同的區(qū)域高亮顯示文章meta信息部分。

文章分類的顯示是通過the_category()模板標簽的使用來生成的。你可以設(shè)計這些分類如何顯示。

找出分類標簽[ ]

你的分類標簽可能放在首頁面,也可能放在一個或多個單獨文章頁面的不同地方,這樣你可能不得不費點力氣來尋找你不同的分類標簽了。你可能還想設(shè)計一個與眾不同的標簽,但首先要把它們找出來。

在整個主題中,帶有你的分類標簽的文章 meta 數(shù)據(jù),通??梢栽?tt>index.php, single.php,或者有時在sidebar.php 模板文件中可以找到。打開一個或者多個模板文件并搜索:

<?php the_category() ?>

一旦找到之后,再看看網(wǎng)頁,然后決定如何更改這些信息。

the_category()模板標簽指導數(shù)據(jù)庫獲得關(guān)于文章分類的信息,并且在模板文件中顯示出來。默認情況下,它顯示分類的列表,每兩個分類中間有空格隔開。你可以通過添加標簽內(nèi)部的參數(shù)更改它們。讓我們通過分類名:WordPress, Computers, and Internet News,從簡單的分隔器開始。

簡單的分隔器[ ]

如果你想在分類中間加上逗號,標簽內(nèi)容如下:

<?php the_category(',') ?>

顯示結(jié)果如下:

WordPress, Computers, Internet News

如果你還想要有一個箭頭,標簽內(nèi)容如下

<?php the_category(' > ') ?>
WordPress > Computers > Internet News

如果你想有一個bullet符號,標簽內(nèi)容如下:

<?php the_category(' &bull; ') ?>
WordPress • Computers • Internet News


如果你想要在分類中間加入"pipe" ( | )符號,這個標簽內(nèi)容如下:

<?php the_category(' | ') ?>
WordPress | Computers | Internet News

向分類中添加文本[ ]

你想讓你的文章meta數(shù)據(jù)看起來更象文字,非正式并且象是一段文章而不是列表嗎?你可以在分類中間加入"and",如下:

<p>You can read related subjects in 
the <?php the_category(' and ') ?> categories.</p>
You can read related subjects in the WordPress and Computers and Internet News categories.

或者你可以給它們更多的選擇,把"and" 改成"or":

You can read related subjects in the WordPress or Computers or Internet News categories.

可能性是無限的。運用你的想象力,玩的開心!