• Resolved alex_w

    (@alex_w)


    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!

    https://www.ads-software.com/extend/plugins/wp-category-meta/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alex_w

    (@alex_w)

    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.

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

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Category Meta plugin] Working with 2.8.4?’ is closed to new replies.