get_post_meta not returning value
-
Alright, I’m stumped and feeling stupid.
I have this line of code:
<?php echo ‘Course ID: ‘ . get_post_meta(17234, ‘_lesson_course’, true); ?>I’ve stripped it out of a larger function, but I can’t even get this simple one to work. I’ve found the item in the database (screenshot: https://snag.gy/1IKwl4.jpg)
But it just returns back:
Course ID:In other words, no value for the _lesson_course meta data.
I’ve double checked, there’s only one record, so it’s not an issue of pulling the wrong one. I’m stumped. Any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_post_meta not returning value’ is closed to new replies.