WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Category Meta plugin] missing information in installation instructions (5 posts)

  1. antr
    Member
    Posted 4 years ago #

    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!

  2. elebail
    Member
    Posted 4 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

  3. hafman
    Member
    Posted 4 years ago #

    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?

  4. hafman
    Member
    Posted 4 years ago #

    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.

  5. patricia1706
    Member
    Posted 3 years 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!

Topic Closed

This topic has been closed to new replies.

About this Topic