2017 © Pedro Peláez
 

wordpress-plugin acfcontentpress

ACF Field(Group)s via PHP

image

premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  • Tuesday, April 10, 2018
  • by andrinheusser
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 23 Versions
  • 0 % Grown

The README.md

README

What's up?

  • Create Advanced Custom Field Groups using php

See the documentation for more information. https://acf-contentpress.readthedocs.io, (*1)

Installation

  • Using composer or download and move to your plugin directory

NOTE: ACF is required for this to work. ACF PRO recommended to use Flexible Content Fields and other good stuff., (*2)

Usage

  1. Create a new directory contents in your active theme directory.
  2. Add directories in contents for fieldgroups and layouts as needed.
  3. Create a seperate file for each group/layout in their respective directories.

FieldGroups

Create field groups by creating a file in the contents/fieldgroups folder., (*3)

Eg. contents/fieldgroups/headerfieldgroup.php, (*4)

<?php

return [
    ACFCP::APPLIESTO => [
        'page'
    ],
    ACFCP::FIELDS => [
        [
            ACFCP::REPEATERFIELD,
            'slider',
            [
                'min' => 1,
                'button_label' => 'Add Image'
            ],
            ACFCP::FIELDS => [
                [
                    ACFCP::IMAGEFIELD,
                    'image'
                ],
                [
                    ACFCP::TEXTFIELD,
                    'caption',
                    'Image Caption',
                    [
                        'maxlength' => 64
                    ]
                ]
            ]
        ]
    ]
];

Layouts

Layouts are a collection of fields, which can be added to a flexible content field. Create layouts by creating a file in the contents/layouts folder., (*5)

Eg. contents/layouts/paragraphlayout.php, (*6)

<?php

return [
    ACFCP::FIELDS => [
        [
            ACFCP::TEXTFIELD,
            'title',
        ],
        [
            ACFCP::TEXTAREAFIELD,
            'text'
        ],
    ],
    ACFCP::SETTINGS => [
        'label' => 'Paragraph'
    ]
];

Add the layout to a flexible content field: (within a field group field), (*7)

[
    ACFCP::FLEXIBLECONTENTFIELD,
    'multicontent',
    ACFCP::LAYOUTS => [
        'paragraphlayout',
        'downloadlayout'
    ]
],

The Versions

10/04 2018

dev-develop

dev-develop https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

10/04 2018

1.2.4

1.2.4.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

06/04 2018

1.2.3

1.2.3.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

27/03 2018

1.2.2

1.2.2.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

27/03 2018

1.2.1

1.2.1.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

27/03 2018

1.2.0

1.2.0.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

16/03 2018

1.1.0

1.1.0.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

12/12 2017

dev-master

9999999-dev https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

12/12 2017

1.0.2

1.0.2.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

12/12 2017

1.0.1

1.0.1.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

GPL

The Requires

  • php >=5.4

 

08/12 2017

1.0.0

1.0.0.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

23/10 2017

dev-improvement/register

dev-improvement/register https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

29/08 2017

0.5.3

0.5.3.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

29/08 2017

0.5.2

0.5.2.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

28/08 2017

0.5.1

0.5.1.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

22/08 2017

0.5

0.5.0.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

07/08 2017

0.4.1

0.4.1.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

30/05 2017

0.4

0.4.0.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

23/05 2017

0.3.1

0.3.1.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

23/05 2017

0.3.0

0.3.0.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

29/11 2016

0.2.1

0.2.1.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.3

 

15/11 2016

0.2

0.2.0.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.4

 

10/11 2016

0.1

0.1.0.0 https://bitbucket.org/premiummedia/acfcontentpress

ACF Field(Group)s via PHP

  Sources   Download

MIT

The Requires

  • php >=5.4