[WordPress] 外掛分享: Landing sites

首頁外掛目錄 › Landing sites
100+
安裝啟用
尚無評分
3785 天前
最後更新
問題解決
WordPress 2.0.2+ v1.5.2 上架:2008-10-23

內容簡介

當訪客從搜尋引擎引薦進入您的網站時,他們一定在尋找某些特定的東西 - 通常他們只會粗略地檢查他們登陸的頁面,如果他們的目標不在該頁面上,他們就會關閉窗口。為什麼不幫助他們,在您的博客上顯示相關的文章,以應對他們的搜索呢?這款外掛可以實現這個功能,並支持多種搜索引擎!

功能細節
ls_getinfo('isref')

如果 referrer 是受支持的搜索引擎,則返回 true - 作為條件標籤使用

ls_getinfo('terms')

輸出搜索詞

ls_getinfo('referrer')

輸出到引薦搜索引擎的鏈接

ls_related()

輸出相關文章列表。可以通過向其傳遞變量進行自定義。ls_related(“limit”,“length”,“before title”,“after title”,“before post”,“ after post”,“show password protected posts”,“show post excerpts”)。

ls_search_engines()

輸出其他搜索引擎結果的鏈接,可以通過向其傳遞變量進行自定義。ls_search_engines(“before_title”,“after_title”)。

在常見問題解答中的代碼示例中,它輸出了5篇相關文章,每篇節錄10個單詞(如果啟用節錄),在標題前開始列表項,文章標題後關閉列表項,在文章前後不顯示內容,不顯示受密碼保護的文章,亦不顯示節錄。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Landing sites」→ 直接安裝(推薦)

原文外掛簡介

When visitors is referred to your site from a search engine, they are definitely looking for something specific – often they just roughly check the page they land on and then closes the window if what they are looking for isn’t there. Why not help them by showing them related posts to their search on your blog? This plugin lets you do that, works with a long list of search engines!
Details on functions
ls_getinfo('isref')

Returning true if the referrer is a supported search engine – used as a conditional tag
ls_getinfo('terms')

Outputs the search terms
ls_getinfo('referrer')

Outputs a link to the referring search engine
ls_related()

Outputs the list of related posts. This can be customized by passing variables to it. ls_related(‘limit’, ‘length’, ‘before title’, ‘after title’, ‘before post’, ‘after post’, ‘show password protected posts’, ‘show post excerpts’).
ls_search_engines()

Outputs links to other search engines results. This can be customized by passing variables to it. ls_search_engines(‘before_title’, ‘after_title’).
In the code example in the FAQ, it outputs 5 related posts, 10 words per excerpt (if excerpts are enabled), list item start before title, list item close after post title, no content before and after posts, doesn’t show password protected posts and doesn’t show excerpts.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon