Using ‘Get Custom Field Values’ in sidebar
-
Hello there!
I’m very confused by the coffee2code.com plugin to show custom field data… I’d like to use it in my sidebar to display 2 custom fields, ‘Location’ and ‘Date(s)’…
At the moment I’m using the following snippet in my sidebar to list recent Exhibitions, and it’s here I’d like to add these custom fields, after the post_URL if possible:
<li><h2>Exhibitions</h2>
<ul>
<?php c2c_get_recent_posts(5, "<li>%post_URL%</li>", "4"); ?>
</ul>
</li>Can anyone help me out on this?
Cheers,
James
PS. I know how to do this inside a normal loop… it’s just in the sidebar that’s confusing me!
<?php echo c2c_get_custom('Location'); ?>
<?php echo c2c_get_custom('Date(s)'); ?>
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Using ‘Get Custom Field Values’ in sidebar’ is closed to new replies.