內容簡介
這個簡單的外掛可以讓您輕鬆地發布短消息,例如想法和更新。這些消息不會出現在您的文章流中;相反,您可以在側邊欄中顯示它們的小工具中。您也可以使用 [microblog] 短碼在任何文章或頁面中顯示它們。
要開始使用,只需在儀表板中查找新的 Microposts 管理面板。點擊 新增新的,然後以與正常發布文章相同的方式撰寫短消息。如果給微博發布一個標題,那麼它將顯示為粗體,並用作微博的開頭幾個單詞。
然後,將小工具新增到您的側邊欄,或者在您的站點中添加 [microblog] 短碼,就完成了!
[microblog] 短碼支援幾個選項:
num: 要顯示的微博數量。預設為 5。使用 -1 顯示所有微博。
null_text: 如果沒有返回結果,則顯示此文本。預設為 (無)。
show_date: 如果定義,創建日期將在微博之前。
date_format: 如果顯示日期,將使用此 php 日期格式。預設值為一般設置頁面中的日期格式值。我建議使用 "F j",顯示為「5月12日」。
use_excerpt: 如果定義,使用文章摘要而不是整個內容。我們建議編寫簡短微博,但如果您更喜歡寫更長的微博,則可以使用它來截斷它們。不幸的是,WordPress 摘要不允許鏈接或其他HTML。使用 Advanced Excerpt 外掛解決此問題!
q: 添加到查詢中的任意&分隔參數。查看 WP_Query 頁面以獲取可用語法。例如,要僅顯示來自作者 sam 且按升序排列的帖子,您將編寫 [microblog q="author_name=sam&order=ASC"]。
然後,可以使用 CSS 進一步格式化輸出。我們建議使用外掛 Improved Simpler CSS 快速設置文章列表 (以及站點) 的樣式!
在 GitHub 上報告錯誤,提供反饋或派生此外掛。
如果您無法查看微博,請嘗試訪問永久鏈接首選項選項卡,然後單擊 保存更改。
已知問題是,當安裝了外掛 Salmon for wordpress 時,某些永久鏈接結構不適用於簡單微博。
外掛標籤
開發者團隊
原文外掛簡介
This simple plugin allows you to easily post short messages such as thoughts and updates. These messages will not appear in your stream of posts; instead you can display them in a widget in yours sidebar. You can also display them in any post or page by using the [microblog] shortcode.
To get started, just look for the new Microposts administration panel in your dashboard. Click Add new and then compose a short message in the same way that you normally compose your posts. If you give the micropost a title, then it will be displayed in bold and used as the first few words of the micropost.
Then, either add the widget to your sidebar or add the [microblog] shortcode into your site, and that’s it!
The [microblog] shortcode supports several options:
num: The number of microposts to show. Defaults to 5. Use -1 to show all microposts.
null_text: If no results are returned, shows this text. Defaults to (none).
show_date: If defined, the creation date will precede the microposts.
date_format: If showing the date, this php date format will be used. The default is the Date Format value from the General Settings page. I recommend "F j", which displays as “May 12”.
use_excerpt: If defined, use the post excerpt instead of the entire contents. We recommend writing short microposts, but if you prefer to write longer ones, this can be used to truncate them. Unfortunately, WordPress excerpts don’t allow links or other html, use the plugin Advanced Excerpt to remedy this!
q: Arbitrary &-separated arguments to add to the query. See the WP_Query page for available syntax. For example, to show only posts from author sam in ascending instead of descending order, you would write [microblog q="author_name=sam&order=ASC"].
The output can then be further formatted using CSS. We recommend the plugin Improved Simpler CSS for quickly styling your post list (and your site)!
Report bugs, give feedback, or fork this plugin on GitHub.
If you are having trouble viewing your microposts, try visiting your permalinks preference pane and clicking Save changes.
It is a known issue that some permalink structures do not work with Simple microblogging when the plugin Salmon for wordpress is installed.
