WordPress.org

Ready to get started?Download WordPress

Forums

get_post_custom_values() for WPv2.0 doesn't work?? (1 post)

  1. BlueCockatoo
    Member
    Posted 8 years ago #

    I'm trying to use Bunny's Techorati tags plugin for WPv2.0. I have the latest version (0.5). I installed and activated it, added the code to the template, added the tags with the custom field on my post, but nothing shows on the site.

    I started poking around in the code trying to debug it and found where the problem is... I get nothing returned from this call:

    $tags = get_post_custom_values($meta_field);

    I've verified that the $meta_field is 'tags' and that the post I'm trying to access them on actually does have values for the 'tags' custom field, and also that the call to the plugin is happening in "the loop".

    I created a new custom field and put some text in the value and hardcoded the tag name like so:

    $tags = get_post_custom_values('testkey');

    Still no luck.

    I found the post on Trac about the changes made to get_post_custom_values() here: http://trac.wordpress.org/changeset/3448

    I made the changes to my template_functions_post.php file...

    Still no luck.

    Can anyone please help me figure out what's going on? I'd greatly appreciate it! Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic