Skip to content

Simple class for adding the ACF values to the term object automatically

License

Notifications You must be signed in to change notification settings

BeAPI/bea-acf-term-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

About

Simple class for adding the ACF values to the term object automatically

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages