Title: PageView
Author: John Godley
Published: <strong>2006 年 9 月 26 日</strong>
Last modified: 2014 年 9 月 7 日

---

搜索插件

![](https://ps.w.org/pageview/assets/banner-772x250.jpg?rev=983480)

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

![](https://ps.w.org/pageview/assets/icon-256x256.jpg?rev=983482)

# PageView

 作者：[John Godley](https://profiles.wordpress.org/johnny5/)

[下载](https://downloads.wordpress.org/plugin/pageview.zip)

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

 [支持](https://wordpress.org/support/plugin/pageview/)

## 描述

PageView is a plugin that will display another web page inside the current post.
This is achieved with the use of an
 iframe – an HTML tag that allows a webpage 
to be displayed inline with the current page.

To use:

    ```
    [pageview url="http://urbangiraffe.com"]
    ```

Optional arguments:

title = A title to show under the iframe
 desc = A description to show under the
iframe width = Width of iframe, in px or % height = Height of iframe, in px or %

### 文档

Full documentation can be found on the [Pageview](http://urbangiraffe.com/plugins/pageview/)
page.

## 安装

The plugin is simple to install:

 1. Download `pageview.zip`
 2. Unzip
 3. Upload `pageview` directory to your `/wp-content/plugins` directory
 4. Go to the plugin management page and enable the plugin

You can find full details of installing a plugin on the [plugin installation page](http://urbangiraffe.com/articles/how-to-install-a-wordpress-plugin/).

## 常见问题

  Installation Instructions

The plugin is simple to install:

 1. Download `pageview.zip`
 2. Unzip
 3. Upload `pageview` directory to your `/wp-content/plugins` directory
 4. Go to the plugin management page and enable the plugin

You can find full details of installing a plugin on the [plugin installation page](http://urbangiraffe.com/articles/how-to-install-a-wordpress-plugin/).

## 评价

![](https://secure.gravatar.com/avatar/9aca11aed8f164368c0179129613ff247603373f4c7096f1d11f2b57c0883a3c?
s=60&d=retro&r=g)

### 󠀁[Still works on 6.8.2](https://wordpress.org/support/topic/still-works-on-6-8-2/)󠁿

 [PiAir](https://profiles.wordpress.org/piair/) 2025 年 8 月 10 日

Since the last review from 2018 was/is a really negative one, I decided to add mine
also. I’ve been using this plugin for ages now, and it still works. There are some
things that could be improved to make it more safe and more “2025”: Sanitize All
Shortcode Attributes: Use sanitize_text_field() for all user-supplied attributes
before use, even if you escape them on output. Defensive Defaults: Ensure all attributes
have safe defaults and are validated. Escaping: You already use esc_url() and esc_html(),
but also use esc_attr() for all HTML attributes. Remove Deprecated PHP: The use 
of &$this in add_shortcode is not needed in modern PHP. I don’t know how to suggest
codechanges via SVN, but if the code is somewhere in github, I’m happy to provide
them. And others: thank you for providing this plugin for free all those many years
ago! 🙂

![](https://secure.gravatar.com/avatar/f2dbfa9168dab27955e5b71744da44875df333d73135bc55be39136a2fe190ca?
s=60&d=retro&r=g)

### 󠀁[Works not at all… 🙁](https://wordpress.org/support/topic/works-not-at-all-2/)󠁿

 [Marjoline](https://profiles.wordpress.org/marjoline/) 2018 年 8 月 5 日

Hi, I tried this with my current template and on 2015, used the given examples, 
brought them across with copy/paste, not typo’s, it simply didn’t work. At best 
it yielded an empty space where the embedded webpage should have been. The one star
is for the good idea, now the challenge for the maker will be to put it into practice
so that it works! Disappointed, Marjoline

![](https://secure.gravatar.com/avatar/74b13f222fa4586fb47a7bf1c5ee23bab600abec890dc4c2849678181dc3d723?
s=60&d=retro&r=g)

### 󠀁[works great.](https://wordpress.org/support/topic/works-great-3190/)󠁿

 [shivan99](https://profiles.wordpress.org/shivan99/) 2016 年 9 月 3 日

simple to use, does what it says.

![](https://secure.gravatar.com/avatar/929175001cfbaf686dd05ed9b472d756df179b93a3c37fe42f88bbeb0aa606b9?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-3029/)󠁿

 [technista](https://profiles.wordpress.org/technista/) 2016 年 9 月 3 日

Easy to use and configure. Was able to successfully add and resize my iframe in 
minutes. Thanks!

![](https://secure.gravatar.com/avatar/97c7422f50ae732809a1009192d47bfc4ea894b0befa60c97ef5627c52d31800?
s=60&d=retro&r=g)

### 󠀁[works on WP 4.3.1, Easy to Install](https://wordpress.org/support/topic/works-on-wp-431-easty-to-install/)󠁿

 [bizfundi](https://profiles.wordpress.org/bizfundi/) 2017 年 4 月 27 日

Thanks, solved a problem for me with a click of a button 😀

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/pageview/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ John Godley ](https://profiles.wordpress.org/johnny5/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.6

 * Bump for WordPress 4.0
 * Clean up code

#### 1.5.1

 * Remove plugin.php file
 * Return the shortcode, don’t just echo it

#### 1.5

 * Use shortcode functions
 * New parameters supported
 * Cleanup
 * Removed default style and icon

#### 1.4.4

 * Remove spurious quotes and vertically align the description

#### 1.4.3

 * Change pattern matching routine

#### 1.4.2

 * Update help field
 * Make work better with wpautop/wptexturize

#### 1.4.1

 * Change tag so it’s no longer a comment

#### 1.4.0

 * Include CSS by default

#### 1.3

 * Update to allow templated HTML.
 * Allow spaces in title when using quotes.
 * Strip

<

p>

#### 1.2

 * Old version

## 额外信息

 *  版本 **1.6**
 *  最后更新：**9 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 2.5 或更高版本 **
 *  已测试的最高版本为 **4.1.42**
 *  语言
 * [English (US)](https://wordpress.org/plugins/pageview/)
 * 标签
 * [embed](https://cn.wordpress.org/plugins/tags/embed/)[html](https://cn.wordpress.org/plugins/tags/html/)
   [iframe](https://cn.wordpress.org/plugins/tags/iframe/)[page](https://cn.wordpress.org/plugins/tags/page/)
   [post](https://cn.wordpress.org/plugins/tags/post/)
 *  [高级视图](https://cn.wordpress.org/plugins/pageview/advanced/)

## 评级

 4.2 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/pageview/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/pageview/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/pageview/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/pageview/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/pageview/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pageview/reviews/#new-post)

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

## 贡献者

 *   [ John Godley ](https://profiles.wordpress.org/johnny5/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://urbangiraffe.com/about/support/)