Comments (9)
Hi @estin1985, can you give me more details about the environment?
- Wordpress version
- CMB2 version
- CMB2-taxonomy version
from cmb2-taxonomy.
Sure! I am using the latest CMB2 (2.0.8), wordpress latest and CMB2-Taxonomy latest. It can easily be tested, just use the example functions but change the object_types array to have category. Category is a taxonomy type, but this plugin does not render in for the default categories. If it did, this would be an excellent replacement for Taxonomy MetaData
from cmb2-taxonomy.
I'm getting always empty values with a custom taxonomy..
last version of cmb2 and cmb2-taxonomy
f.i.
$autor is the custom taxonomy term
get_post_meta( $autor->term_id, '_myprefix_foto' );
returns an empty array (the id and name is correct)
from cmb2-taxonomy.
@danieljulia me too, with same approach... :(
$tax = 'prod_category';
$tax_terms = get_terms($tax);
foreach ($tax_terms as $key => $tax_term) {
$prefix = '_prod_category_';
$tax_icon = get_post_meta($tax_term->term_id, $prefix.'icon', true);
}
from cmb2-taxonomy.
@danieljulia We r using get_post_meta, but for term is necessary to use get_term_meta. There are no instruction to do this, but exploring plugin functions.php I found it.
Hope this help you :)
from cmb2-taxonomy.
You are right!!
Thanks!
in my sample would be
get_term_meta( $autor->term_id, '_myprefix_foto' );
instead of
get_post_meta( $autor->term_id, '_myprefix_foto' );
from cmb2-taxonomy.
Thank you @marsshall for the assitance. I am extremely busy this days so I could not follow up this issue. I will add the documentation for this soon.
from cmb2-taxonomy.
@jcchavezs @danieljulia You're welcome :)
from cmb2-taxonomy.
By the way, I just added some documentation for the usage: https://github.com/jcchavezs/cmb2-taxonomy#usage.
cc/ @danieljulia @marsshall
from cmb2-taxonomy.
Related Issues (14)
- wysiwyg field dont insert content in add term page
- Is there a way to use get_terms and filter by custom taxonomy field?
- How to create repeatable groupe in taxonomy? HOT 2
- Taxonomy Metabox Position
- Active development? Plans to use _termmeta table? HOT 1
- Image filed for taxonomy not shwing on front end HOT 2
- Search Ajax Term not registering to actual Taxonomy
- Differences between this plugin and the Taxonomy_MetaData helper class HOT 2
- Update to use field/metabox registration API HOT 1
- cant use without create wp_termmeta first
- Error on line 68 of plugin
- 1.0.2 Breaks WP 4.4 HOT 3
- Fatal error: Cannot redeclare get_term_meta HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmb2-taxonomy.