Download the PHP package iceicetimmy/acf-post-type-selector without Composer
On this page you can find all versions of the php package iceicetimmy/acf-post-type-selector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download iceicetimmy/acf-post-type-selector
More information about iceicetimmy/acf-post-type-selector
Files in iceicetimmy/acf-post-type-selector
Download iceicetimmy/acf-post-type-selector
More information about iceicetimmy/acf-post-type-selector
Files in iceicetimmy/acf-post-type-selector
Vendor iceicetimmy
Package acf-post-type-selector
Short Description Post type selector for Advanced Custom Fields.
License GPLv2 or later
Homepage https://github.com/TimPerry/acf-post-type-selector
Package acf-post-type-selector
Short Description Post type selector for Advanced Custom Fields.
License GPLv2 or later
Homepage https://github.com/TimPerry/acf-post-type-selector
Please rate this library. Is it a good library?
Informations about the package acf-post-type-selector
Advanced Custom Fields: acf-post-type-selector Field
- Contributors: @timperry, @shaunbent, @emaildano, @rafegoldberg, @thomasdebruin, @gnowland
- Tags: ACF, Post Type Selector
- Requires at least: 4.0
- Tested up to: 5.0.0
- Stable tag: trunk
- License: GPLv2 or later
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
Description
Provides the option to select a single or multiple post types
Compatibility
This add-on will work with:
- version 5 and up
- version 4 and up
Installation
This add-on can be treated as both a WP plugin and a theme include.
Plugin
- Copy the 'acf-post-type-selector' folder into your plugins folder
- Activate the plugin via the Plugins admin page
Include
- Copy the 'acf-post-type-selector' folder into your theme folder (can use sub folders). You can place the folder anywhere inside the 'wp-content' directory
- Edit your functions.php file and add the code below (Make sure the path is correct to include the acf-post-type-selector.php file)
ACF Version 4
add_action( 'acf/register_fields', 'my_register_fields' );
function my_register_fields() {
include_once( 'acf-post-type-selector/post-type-selector-v4.php' );
}
ACF Version 5
add_action( 'acf/include_fields', 'my_register_fields' );
function my_register_fields() {
include_once( 'acf-post-type-selector/post-type-selector-v5.php' );
}
Usage
Get Field Value
Get Field Value and Display Label
Filter available post types
By default, only post types with parameter public
will be shown. If you need to show non-public post types use the filter post_type_selector_post_types
as described below. This filter also allows you to remove post types from the list.
Changelog
1.0.1
- Filter available post types
1.0.0
- Support for ACF
v5
0.0.1
- Initial Release.
All versions of acf-post-type-selector with dependencies
PHP Build Version
Package Version
Requires
composer/installers Version
v1.4.*
The package iceicetimmy/acf-post-type-selector contains the following files
Loading the files please wait ....