WP Landing sites plugin
plugin name
plugin info
- 検索エンジンから開いたページの任意の場所に、検索エンジン名と検索キーワード、検索キーワードと関連した記事のタイトルを表示することができるプラグイン
- 別途関連記事表示系プラグイン使用
- Version: Landing sites 1.3
- Download
Installation
- ダウンロードしたファイルをプラグインフォルダにアップロードして有効化
- テーマの表示したい場所に呼び出しcodeを追記
例:
<?php if (ls_getinfo(‘isref’)) { ?>
<h2 id="toc-"><?php ls_getinfo(‘terms’); ?></h2>
<p>You came here from <?php ls_getinfo(‘referrer’); ?> searching for <i><?php ls_getinfo(‘terms’); ?></i>. These posts might be of interest:</p>
<ul>
<?php ls_related(5, 10, ‘<li>’, ‘</li>’, ‘’, ‘’, false, false); ?>
</ul>
<?php } ?>
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で調整して完成。

私の完成コード
<div class="landingsite">
<h1 id="toc-1"><?php ls_getinfo('terms'); ?></h1>
<p>
<?php
$referer = ls_get_refer();
$delimiter = ls_get_delim($referer);
if($delimiter)
{
$terms = ls_get_terms($delimiter);
$parsed = parse_url($_SERVER['HTTP_REFERER']);
$parsedreferer = '<a href="http://'.$parsed['host'].'">'.$parsed['host'].'</a>';
}
printf( __('Sie sind von \'%s\' kommend, auf der Suche nach \'%s\' hier gelandet. Folgende Artikel sind eventuell ebenfalls von Interesse:','4null4.de'), $parsedreferer, $terms);
?>
</p>
<h3 id="toc-keyword">keyword:<?php ls_getinfo('terms'); ?>の関連記事</h3>
<ul class="utw_related">
<?php UTW_ShowRelatedPostsForCurrentPost("posthtmllist", "", "10") ?>
</ul>
</div>
上記をtheloop.phpの /* Start The Loop */while (have_posts())へ記入しました。
以前Landing sites plugin設置に失敗した時に書いた記事: Landing sites plugin
以前導入に失敗していたLanding sitesですが、現在使用しているthemeがこのプラグインのサポートをしていたので有効化するだけで見事表示されるようになりました。
2007-03-08 現在表示されていません。原因究明中
you may want to subscribe to my RSS feed. Thanks for visiting!








[...] WP Landing sites pluginが作動していない。 [...]
[...] WP Landing sites plugin | Rif.2ndを書いた時は載せた画像の通りに表示されていたのに、時間が経ってから見たら、全然表示されていなかった。 でも、ログアウトして見ると、ちゃんと見えた!! [...]
[...] http://rikaizm.com/2007/02/11/wp-landing-sites-plugin/ [...]