Trouble with Meta Data
-
I have created a new dropdown field using the Cimy User Extra Fields plugin for authors to update their profile with the work area they are in. Upon saving the work area in the dropdown on the Update Profile page, I am able to see the work area per each given author correctly in my phpMyAdmin database.
However, I now wish to pull the work area information from the database to use as meta data; I have gone off the first case example provided at the link below to pull meta data and have added the following snippet of code to my header.php file for each blog post.
https://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/documentation/
<meta name="DCSext.workarea" content="<?php cimy_uef_sanitize_content(get_cimyFieldValue(the_author_meta('ID'), 'WORKAREA')); ?>" />
The issue is, upon inspecting the source code, the content is returning the author/user ID for the given post rather than the value/name of the author’s work area. I’m not sure what to do, as I’m calling the field_name (Name: WORKAREA) per the case/example directions; I’ve tried both with and without quotes around the field name and it made no difference, but I’m pretty sure it has something to do with calling this value incorrectly because it is receiving and returning the correct author ID for each post. Any help/suggestions are more than welcome! Thanks!
- The topic ‘Trouble with Meta Data’ is closed to new replies.