Forums

[resolved] [Plugin: Category Meta plugin] Working with 2.8.4? (4 posts)

  1. alex_w
    Member
    Posted 2 years ago #

    Have a question. Using this plugin, seems to do exactly what I'm looking for. But, doesn't seem to come back using the instructions. My code is below.

    When I do echo $catkeyword - nothing comes back.

    <?php if (function_exists('get_terms_meta')) {
    $category = get_the_category();
    $catid = $category[0]->cat_ID;
    
    	$catkeyword = get_terms_meta($catid, 'keyword');
    
    } ?>

    I haven't touched anything else in the file etc.

    Any help? Thanks!

    http://wordpress.org/extend/plugins/wp-category-meta/

  2. alex_w
    Member
    Posted 2 years ago #

    Just an update.

    Was working, but I was placing that after the loop on the category pages, so it was picking up the last item's last category. My posts have multiple nested categories so it read that instead of the actual current category page.

    To fix I placed it before the loop, and then used $catkeyword in a call/function after the loop, and things seem to have worked out.

  3. Aen
    Member
    Posted 2 years ago #

    Doesn't work for me, I added custom fields but when I check the database, the table is empty. Saving doesn't work.

  4. Aen
    Member
    Posted 2 years ago #

    Ok works for me now, $key cannot have spaces in it. Remember to echo.

Topic Closed

This topic has been closed to new replies.

About this Topic