https://github.com/beapi/bea-acf-term-fields
Simple class for adding the ACF values to the term object automatically
https://github.com/beapi/bea-acf-term-fields
Last synced: 9 months ago
JSON representation
Simple class for adding the ACF values to the term object automatically
- Host: GitHub
- URL: https://github.com/beapi/bea-acf-term-fields
- Owner: BeAPI
- License: gpl-2.0
- Created: 2015-06-29T09:30:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T09:37:00.000Z (over 8 years ago)
- Last Synced: 2025-03-28T07:51:30.811Z (9 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bea-acf-term-fields
Simple class for adding the ACF values to the term object automatically
# Usage
The usage is very simple, just add taxonomies you want to get the ACF fields from and the script does everything else.
```php
add_action( 'init', 'init_taxonomies_fields', 11 );
/**
* Add taxonomies to the API for getting the fields for each term
*
* @author BeAPI
*/
public function init_taxonomies_fields() {
BEA_ACF_Term_Fields::get_instance()
->add_taxonomy( 'post_tag' )
->add_taxonomy( 'category' );
}
## Changelog ##
### 1.1.2
* 02 May 2017
* Fix fatal error on empty field name
### 1.1.1
* 19 Apr 2017
* Fix admin notice
### 1.0.0
* Initial Release