[Plugin: Now Reading Reloaded] Accessing custom fields
-
I’m trying to use custom metadata in my library entries, without any luck. I have a custom key ‘book_desc’ for example, with some copy in the value box.
Using the obvious(?)
$desc = get_post_meta($post->ID,'book_desc',true); echo $desc;
in my template doesn’t produce any output. Tried replacing “post” with “book” in the above, just for kicks, with no result, either.Using the_meta() gives me metadata from a post on my blog, but nothing to do with the books I’m working with.
Has anyone had success with custom metadata? Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Now Reading Reloaded] Accessing custom fields’ is closed to new replies.