跳到内容

AJAX Read More

v2.1.1

Sergey.S.Betke · 2011年9月13日 上架

Automatically transform your <!--more--> links into links that immediately display the rest of your entry (AJAX).

正在使用
50+
评分
5.0 / 5
累计下载
2.6 万
最近更新
2011年12月8日
2 条评价需要 WordPress 3.0.0+已测试到 3.3.2

贡献者

截图

Site page with ajax loading indicator.
Site page with ajax loading indicator.

When your blog is loaded, all links of this class .more-link (standard wordpress css class for “Read more…”
links) are modified to no longer send the user to that post’s
single page display when clicked. Instead, the WordPress database is queried for that specific post, and all content
after the <!–more–> tag (i.e. only what you need) is returned.
The new content is then immediately displayed to the user with light animation (You can disable animation in plugin options),
inline with the opening content.

  • AJAX-read-more uses the jQuery framework already included with WordPress installations.
  • This plugin used GET ajax action (not POST, like other plugins), wordpress “template_redirect” action.
  • It’s compatible with cache plugins (like Hyper Cache Extended).
  • AJAX-read-more: design of progress indicator and other behaviors – by CSS (example – in css/all.css)
  • cache-safe script and css url

Check plugin options on options page.

Thanks for debugging to den@10-13.ru.

Theme requirements:

  • Your theme must generate correct DOM structure:
    (div id=”#content”)
    …
    (div class=”post”)
    …
    (/div)
    (/div)
  • Theme must support footer (wp_footer). If not, you can change corresponding option on plugin option page.

For more information, please visit the Sergey S. Betke blog.

ToDo

The next version or later:
* wordpress core integration for cache headers processing???
* optional http cache-control max-age header value and must-revalidate
* just private cache headers, when post has limited access
* check cache plugins support (Hyper Cache Extended): clear cached responces when post modified
* cache-control and Last-Modification headers – to separate plugins
* if-modified http request support (separate plugins)
* the_excerpt optional support
* AJAX-read-more send correct http cache-control headers, and fully support client-side public cache.
* WP 3.3: http://wpdevel.wordpress.com/tag/3-3-dev-notes/
* WP 3.3: replace wp_localize_script() with wp_add_script_before(). wp_localize_script doesn’t support non-string params in WP 3.3+
* WP 3.3: wp_enqueue_script() now works mid-page – insert scripts just into pages when it’t needed

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums