Advanced Custom Fields: Multisite Select
Select a site from a network and return blog id
by James H-Hall · github.com/jamesimpression/acf-multisite-select · website
★ 3stars
110composer installs
1forks
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/jamesimpression/acf-multisite-select/archive/refs/heads/master.zipAlso on Packagist as impression/acf-multisite-select:
composer require impression/acf-multisite-selectFrom the readme
ACF Field Type Template
Welcome to the Advanced Custom Fields field type template repository.
Here you will find a starter-kit for creating a new ACF field type. This starter-kit will work as a normal WP plugin.
For more information about creating a new field type, please read the following article:
http://www.advancedcustomfields.com/resources/tutorials/creating-a-new-field-type/
Structure
/assets: folder for all asset files.
/assets/css: folder for .css files.
/assets/images: folder for image files
/assets/js: folder for .js files
/fields: folder for all field class files.
/fields/multisiteselect-v5.php: Field class compatible with ACF version 5
/fields/multisiteselect-v4.php: Field class compatible with ACF version 4
/lang: folder for .pot, .po and .mo files
acf-multisiteselect.php: Main plugin file that includes the correct field file based on the ACF version
readme.txt: WordPress readme file to be used by the WordPress repository
step 1.
This template uses PLACEHOLDERS such as multisiteselect throughout the file names and code. Use the following list of placeholders to do a 'find and replace':
multisiteselect: Single word, no spaces. Underscores allowed. e