Title: Landing sites
Author: SomeUser
Published: <strong>2008 年 10 月 24 日</strong>
Last modified: 2015 年 11 月 6 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/landing-sites.svg)

# Landing sites

 作者：[SomeUser](https://profiles.wordpress.org/devil1591/)

[下载](https://downloads.wordpress.org/plugin/landing-sites.zip)

 * [详情](https://cn.wordpress.org/plugins/landing-sites/#description)
 * [评价](https://cn.wordpress.org/plugins/landing-sites/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/landing-sites/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/landing-sites/#developers)

 [支持](https://wordpress.org/support/plugin/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.

## 屏幕截图

[⌊A website showing related post when a visitor has searched for "landing sites 
screenshot"⌉⌊A website showing related post when a visitor has searched for "landing
sites screenshot"⌉[

A website showing related post when a visitor has searched for “landing sites screenshot”

## 安装

 1. Upload the folder `landing-sites` to your `/wp-content/plugins/` directory
 2. Activate the plugin
 3. Check FAQ to show the related posts list

## 常见问题

  How to show the related posts list?

Add this code (in your index.php or somewhere else):

    ```
    <?php if (ls_getinfo('isref')) : ?>
       <h2><?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 endif; ?>
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「Landing sites」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ SomeUser ](https://profiles.wordpress.org/devil1591/)

[帮助将「Landing sites」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/landing-sites)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/landing-sites/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/landing-sites/)，或通过[RSS](https://plugins.trac.wordpress.org/log/landing-sites/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/landing-sites/)。

## 额外信息

 *  版本 **1.5.2**
 *  最后更新：**11 年前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 2.0.2 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/landing-sites/)
 * 标签
 * [google](https://cn.wordpress.org/plugins/tags/google/)[referer](https://cn.wordpress.org/plugins/tags/referer/)
   [related](https://cn.wordpress.org/plugins/tags/related/)[search](https://cn.wordpress.org/plugins/tags/search/)
   [seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/landing-sites/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/landing-sites/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/landing-sites/reviews/)

## 贡献者

 *   [ SomeUser ](https://profiles.wordpress.org/devil1591/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/landing-sites/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://wordpress.org/donate/)