PHPackages                             sectsect/acf-repeater-field-query - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sectsect/acf-repeater-field-query

ActiveWordpress-plugin

sectsect/acf-repeater-field-query
=================================

Modify the Query to multiple dates in a post For Advance Custom Field 'Repeater Field'.

v1.1.5(8y ago)5252GPL-3.0+PHPPHP &gt;=5.3

Since Feb 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sectsect/acf-repeater-field-query)[ Packagist](https://packagist.org/packages/sectsect/acf-repeater-field-query)[ RSS](/packages/sectsect-acf-repeater-field-query/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (0)

[![](https://camo.githubusercontent.com/b8a22d292780c631360a84efd912e57855d5395021965174bffa6f3b255dd62f/68747470733a2f2f6769746875622d736563742e73332d61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f6c6f676f2e737667)](https://camo.githubusercontent.com/b8a22d292780c631360a84efd912e57855d5395021965174bffa6f3b255dd62f/68747470733a2f2f6769746875622d736563742e73332d61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f6c6f676f2e737667) ACF Repeater Field Query - For Events -
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-acf-repeater-field-query---for-events--)

### Modify the Query to multiple dates in a post For [Advanced Custom Field](https://wordpress.org/plugins/advanced-custom-fields/) "Repeater Field"

[](#modify-the-query-to-multiple-dates-in-a-post-for-advanced-custom-field-repeater-field)

Features
--------

[](#features)

For each `Date and Time` set in the `Repeater Field`, only the scheduled events are output to Archive Page.

- The `Date and Time` set in the `Loop Field` is outputted as `one event`.
- Displayed in order of the most recent event (`ASC`).
- Closed events is not outputted.
- Supply a `function` for calendar 📅

Requirements
------------

[](#requirements)

- PHP 5.3+
- Activation [Advanced Custom Field](https://wordpress.org/plugins/advanced-custom-fields/) Plugin.
- Create a `Repeater Field`, and `Date Field` in the Repeater Field w/ [Advanced Custom Field](https://wordpress.org/plugins/advanced-custom-fields/) Plugin.
- A 6-pack of beer🍺 (optional, I guess.)

Installation
------------

[](#installation)

1. `cd /path-to-your/wp-content/plugins/`
2. `git clone git@github.com:sectsect/acf-repeater-field-query.git`
3. Activate the plugin through the 'Plugins' menu in WordPress.
    You can access the some setting by going to `Settings` -&gt; `ACF Repeater Field Query`.
4. Setting `Post Type Name`, `Repeater Field Name`, `Date Field Name` in Loop Feld".
    ( Optional Field: `Taxonomy Name`, `StartTime Field`, `FinishTime Field` )
    That's it:ok\_hand:
    The main query of your select post types will be modified.

Fields Structure Example
------------------------

[](#fields-structure-example)

[![](https://camo.githubusercontent.com/1f6448c7d4b107c13bf7698962aed95d299bd39018e1ebfe1530df9150a507fe/68747470733a2f2f6769746875622d736563742e73332d61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f6163662d72657065617465722d6669656c642d71756572792f73637265656e2e706e67)](https://camo.githubusercontent.com/1f6448c7d4b107c13bf7698962aed95d299bd39018e1ebfe1530df9150a507fe/68747470733a2f2f6769746875622d736563742e73332d61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f6163662d72657065617465722d6669656c642d71756572792f73637265656e2e706e67)

NOTES
-----

[](#notes)

- Tested on ACF `v5.5.5`
- If you want to apply to some existing posts, Resave the post.
- Supports Page `is_date()` includes `is_year()` `is_month()` `is_day()`.
- If you have set the 'FinishTime', it does not appear that post when it passes your set time. (Default: The Day Full)

Usage Example
-------------

[](#usage-example)

You can get a sub query using the `new ACF_RFQ_Query()`

#### Example: Sub Query

[](#example-sub-query)

```
