From page:
http://wordpress.org/extend/plugins/wp-category-meta/installation/
6 you can use the folowing functions into your templates to retreive 1 meta:
7 you can use the folowing functions into your templates to retreive all meta:
Which functions??? I do not see /any/ function!
elebail
Member
Posted 2 years ago #
Hello,
The complete instructions are in the Readme file.
For a reason I don't understand the code samples aren't displayed into the site.
6. you can use the folowing functions into your templates to retreive 1 meta:
<?php
if (function_exists('get_terms_meta'))
{
$metaValue = get_terms_meta($category_id, $meta_key);
}
?>
7. you can use the folowing functions into your templates to retreive all meta:
<?php
if (function_exists('get_all_terms_meta'))
{
$metaList = get_all_terms_meta($category_id);
}
?>
Regards,
Eric Le Bail
Hi Eric,
I've tried various ways of implementing the above code but being a novice php hack i'm starting to despair. Can you state where in the template it should go? (functions.php or a page template) and how i could echo the value as a css style for example?
If i could get this to do anything it would be a really useful plugin.
I'm using WordPress 2.9.2 so that might be the cause of any problems?
I'm investigating the "category fields" plugin on this page:
So far so good....
Request: Custom fields for categories (26 posts)
The plugin works on wp 2.9.2 and especially with Sonika's update to activate TinyMCE WP 2.8 and above.
patricia1706
Member
Posted 1 year ago #
@hafman
Could you help me out with the PHP call to get the "category fields" plug-in working? The one with Sonika's update as you mentioned above.
Thanks!