Closed vladkucherov closed 9 years ago
Hi,
$aOptions = get_option( 'YourClassNameHere' );
(reference: https://github.com/michaeluno/admin-page-framework/issues/53#issuecomment-32704192)
Don't worry about asking lots of questions. They should help other users. Just make sure they are clear.
@michaeluno Hi,
Don't you think this is something that should work similar to the posts? I mean maybe you should add filter to the term object to add additional attributes by the custom fields?
$term->custom_var
instead of:
$custom_vars[$term->term_id]['custom_var']
What do you think? This should be something easy to do I think. Want me to add this?
I mean maybe you should add filter to the term object to add additional attributes by the custom fields?
It is impossible to tell when and where the site of the user uses a taxonomy. The framework is not designed to be loaded in every single page load, after all.
What do you think? This should be something easy to do I think. Want me to add this?
I don't see it is necessary. However, if you really think it is useful, you may show how you do it by requesting a pull.
Closing the topic as the initially addressed problem seems to be resolved.
Hi,
I searched over your framework, And I couldn't find anywhere a method to fetch the custom fields I created for taxonomy term.
I have a taxonomy
game
and I added it this field:The field is working and saving like it should, but how I can get the data stored? I couldn't find any method, I didn't find anything in an example, and it looks like you are not using any filter to add anything the a term from the custom fields.
from your code:
Everything looks to be related to the admin area - which is great. But what if I need the data stored from within a look using
get_term()
WP function?Please advice
(Sorry for lots of questions, things are not quite clear to me)