WP Landing sites plugin
plugin name
plugin info
- 検索エンジンから開いたページの任意の場所に、検索エンジン名と検索キーワード、検索キーワードと関連した記事のタイトルを表示することができるプラグイン
- 別途関連記事表示系プラグイン使用
- Version: Landing sites 1.3
- Download
Installation
- ダウンロードしたファイルをプラグインフォルダにアップロードして有効化
- テーマの表示したい場所に呼び出しcodeを追記
例:
[sourcecode language='php']
You came here from searching for . These posts might be of interest:
-
’, ‘
’, ‘’, ‘’, false, false); ?>
[/sourcecode]
Functions
- ls_getinfo(’isref’)
- Returning true if the referrer is a supported search engine – used as a conditional tag
- 使える条件タグ* is_home()* is_single()* is_page()* is_category()* is_author()* is_date()* is_year()* is_month()* is_day()* is_time()* is_archive()* is_search()* is_paged()* is_404()
- 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, lenght, ‘before title’, ‘after title’, ‘before post’, ‘after post’ show password protected posts, show post excerpts).
- 関連のポストのリストを出力する。 ls_relatedに変数を渡すことによってカスタマイズすることができる。
上記呼び出しコードはRelated Postsプラグインを有効化している際の例です。
Related Postsは、日本語の場合支障があるので関連記事表示に別のプラグインを使用している場合はそのコードを記入します。
Related Postsで表示してみた例

記事が少ないのもありますが、何も表示されませんでした。
UTWのタグを使用した例:

それにCSSで調整して完成。

私の完成コード
[sourcecode language='php']
$referer = ls_get_refer();
$delimiter = ls_get_delim($referer);
if($delimiter)
{
$terms = ls_get_terms($delimiter);
$parsed = parse_url($_SERVER['HTTP_REFERER']);
$parsedreferer = ‘‘.$parsed['host'].’‘;
}
printf( __(‘Sie sind von \’%s\’ kommend, auf der Suche nach \’%s\’ hier gelandet. Folgende Artikel sind eventuell ebenfalls von Interesse:’,'4null4.de’), $parsedreferer, $terms);
?>
keyword:の関連記事
[/sourcecode]
上記をtheloop.phpの /* Start The Loop */while (have_posts())へ記入しました。
以前Landing sites plugin設置に失敗した時に書いた記事: Landing sites plugin
以前導入に失敗していたLanding sitesですが、現在使用しているthemeがこのプラグインのサポートをしていたので有効化するだけで見事表示されるようになりました。
2007-03-08 現在表示されていません。原因究明中

