內容簡介
如果你在WordPress博客上經常使用“上一篇”和“下一篇”連結,使用它們自己的標題,你可能會注意到,過長的標題會導致斷行,因此在頁面佈局方面產生不可預測的結果。
到目前為止,在WordPress中唯一的解決方法是將文章的標題替換為像“下一篇文章”、“上一篇文章”等常規短語。使用此外掛程序,您可以使用文章本身的標題,並根據需要對其進行修剪。
特點:
限制上一篇和下一篇文章標題的長度,根據您想要的字符數進行設置
在必要的情況下,截斷標題到最後一個空格,添加三個省略號
在工具提示中顯示文章的完整標題(令人困惑的是,WordPress從不考慮連結的工具提示)
設置在連結標題之前有條件地出現的字符串,僅當連結標題本身存在時(在WordPress中,您必須將字符串添加到“下一篇/上一篇”的標籤之外,這樣即使連結不存在,它也會出現在頁面上,或者添加字符串到WordPress生成的連結內部,這樣會產生醜陋的結果:例如,如果字符串只是一個簡單的分隔符,如“|”)
外掛標籤
開發者團隊
原文外掛簡介
If you are used to link the ‘previous’ and ‘next’ posts on a wordpress blog using their own title, you have probably noticed how more often than not too long titles can cause broken lines, hence unpredictable results in terms of page layout.
The only workaround in wordpress so far was to replace the title of the posts with generic phrases like ‘next post’, ‘previous post’ and so on. With this plugin you can use the title of the post itself, and trim it as needed.
Features:
limits the length of the previous and next post titles to the number of characters you want
where necessary, truncates the title to the last space, adding three dots
shows the entire title of the post in the tooltip (mysteriously wordpress never considers the tooltips of the links)
sets the string that conditionally will appear before the link title, only if the link title itself is present (previously in wordpress you either had to add a string outside of the ‘next/previous post’ tag, thus causing it to appear in the page even if the link was not present, or you had to add the string inside the link generated by wordpress, with ugly results: for example if the string was just a simple dividing character like ‘|’)
