Title: TTT Loadmore
Author: gabrielperezs
Published: <strong>2015 年 9 月 7 日</strong>
Last modified: 2015 年 9 月 14 日

---

搜索插件

![](https://ps.w.org/ttt-loadmore/assets/banner-772x250.png?rev=1240547)

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

![](https://ps.w.org/ttt-loadmore/assets/icon-256x256.png?rev=1240547)

# TTT Loadmore

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

[下载](https://downloads.wordpress.org/plugin/ttt-loadmore.1.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/ttt-loadmore/)

## 描述

WordPress plugin to load more event with your own template.

For code contributions please go to https://github.com/33themes/ttt-loadmore

### How to use it

_This is the base html:_

    ```
    <a href="#" data-tttloadmore-do="archiveposts" data-tttloadmore-to="#main" data-tttloadmore-args="category:php;">
        Load more content
    </a>
    ```

 * data-tttloadmore-do* is the action to load more content
 * data-tttloadmore-to* is where the script put the content after load more posts(
   the result of the “do” action)
 * data-tttloadmore-args* contain all the arguments you want to send to the “do”
   action

_Then, you have to create an action with the same name of the data-tttloadmore-do_

    ```
    <?php
    function loadmore_archiveposts( $page, $args = false ){

        $archiveposts = array(
            'post_type' => 'post',
            'post_status' => 'publish',
            'order' => 'DESC',
            'orderby' => 'date',
            'paged' => $page,
            'ignore_sticky_posts' => 1,
            'category_name' => $args['category'],
        );
        $archiveposts_query = new WP_Query($archiveposts);
        ?>

        <?php if ($archiveposts_query->have_posts()) : ?>
            <?php while ($archiveposts_query->have_posts()) : $archiveposts_query->the_post(); ?>
                    <?php get_template_part( 'partials/content', 'content' ); ?>
            <?php wp_reset_postdata();?>
            <?php endwhile; ?>
        <?php endif;?>

        <?
    }
    add_action('ttt_loadmore_archiveposts','loadmore_archiveposts', 1, 2);
    ?>
    ```

## 安装

This section describes how to install the plugin and get it working.

 1. Upload `ttt-loadmore` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ gabrielperezs ](https://profiles.wordpress.org/gabrielperezs/)
 *   [ 33themes ](https://profiles.wordpress.org/33themes/)
 *   [ Pancho Perez ](https://profiles.wordpress.org/lonchbox/)
 *   [ Thomas Grünvogel ](https://profiles.wordpress.org/tomasog/)
 *   [ Carlos ](https://profiles.wordpress.org/11bits/)

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

### 对开发感兴趣吗?

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

## 更新日志

### 1.1

Remove assets from the main file

### 1.0

First version

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.7 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/ttt-loadmore/)
 * 标签
 * [loadmore](https://cn.wordpress.org/plugins/tags/loadmore/)[pagination](https://cn.wordpress.org/plugins/tags/pagination/)
   [posts pagination](https://cn.wordpress.org/plugins/tags/posts-pagination/)
 *  [高级视图](https://cn.wordpress.org/plugins/ttt-loadmore/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ gabrielperezs ](https://profiles.wordpress.org/gabrielperezs/)
 *   [ 33themes ](https://profiles.wordpress.org/33themes/)
 *   [ Pancho Perez ](https://profiles.wordpress.org/lonchbox/)
 *   [ Thomas Grünvogel ](https://profiles.wordpress.org/tomasog/)
 *   [ Carlos ](https://profiles.wordpress.org/11bits/)

## 支持

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

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