Advanced Custom Fields: Post Type Selector
Post type selector for Advanced Custom Fields
by Tim Perry · github.com/timperry/acf-post-type-selector · website
★ 55stars
9kcomposer installs
25forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/timperry/acf-post-type-selector/archive/refs/heads/master.zipAlso on Packagist as iceicetimmy/acf-post-type-selector:
composer require iceicetimmy/acf-post-type-selectorFrom the readme
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
1. Copy the 'acf-post-type-selector' folder into your plugins folder
2. Activate the plugin via the Plugins admin page
Include
1. 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
2. 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
addaction( 'acf/registerfields', 'myregisterfields' );
function myregisterfields() {
includeonce( 'acf-post-type-selector/post-type-selector-v4.php' );
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.0.1 | Apr 11, 2018 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.