內容簡介
這個 WordPress 外掛可以將你的文章進行歸檔,也可以透過排程自動執行,但這個功能只能透過 php 檔案內的變數來啟用。
使用簡碼 [archive] 將會將狀態為發佈的所有文章列表顯示在頁面或文章上。
這個簡碼可以使用不同的參數,也可以使用以下默認值:
'count' => -1, //文章數量,-1 為全部文章
'category' => '', //顯示特定分類的文章
'tag' => '', //顯示特定標籤的文章
'post_status' => 'publish', //狀態,填寫 all 將顯示所有文章
'echo' => 'true', //是否顯示在頁面上,或者輸出一個使用外部的陣列
'return_markup' => 'ul', //顯示標題和內容前的標記
'title_markup' => 'li', //項目之間的標記
'content' => 'false', //是否顯示內容?
'debug' => 'false' //是否進行除錯
使用帶有參數的簡碼範例:[archive count="10" content="true"]
你也可以通過篩選器掛鉤 archive_post_type_arguments 來更改自定義文章類型的相關參數。
由 Inpsyde 所開發 · 自 2006 年以來致力於網頁開發。
外掛標籤
開發者團隊
原文外掛簡介
Archive your post types, also possible via cron; but only active via var inside the php-file.
Use the shortcode [archive] to list all posts from Archive with status publish to a page or post.
The shortcode can use different params and use the follow defaults.
'count' => -1, // count or -1 for all posts
'category' => '', // Show posts associated with certain categories.
'tag' => '', // Show posts associated with certain tags.
'post_status' => 'publish', // status or all for all posts
'echo' => 'true', // echo or give an array for use external
'return_markup' => 'ul', // markup before echo title, content
'title_markup' => 'li', // markup before item
'content' => 'false', // view also content?
'debug' => 'false' // debug mor vor view an array
An example for use shortcode with params: [archive count="10" content="true"]
Also you can change the parameters to create the custom post type of the Archiv via the filter hook archive_post_type_arguments.
Crafted by Inpsyde · Engineering the web since 2006.
