Plugin Directory

Get Custom Field Values

I added the template tag to my template and the post has the custom field I'm asking for but I don't see anything about it on the page; what gives?

Did you echo the return value of the function, e.g. <?php echo c2c_get_custom('mood', 'My mood: '); ?>

Can I achieve all the functionality allowed by the six template functions using the widget?

Except for c2c_get_custom() (which is only available inside "the loop"), yes, by carefully setting the appropriate settings for the widget.

How do I configure the widget to match up with the template functions?

  • c2c_get_custom() : not achievable via the widget
  • c2c_get_current_custom() : set the "Post ID" field to 0, leave "Pick random value?" unchecked, and set other values as desired.
  • c2c_get_post_custom() : set the "Post ID" field to the ID of the post you want to reference and set other values as desired.
  • c2c_get_random_custom() : leave "Post ID" blank, check "Pick random value?", and set other values as desired.
  • c2c_get_random_post_custom() : set the "Post ID" field to the ID of the post you want to reference, check "Pick random value?", and set other values as desired.
  • c2c_get_recent_custom() : leave "Post ID" blank and set other values as desired.

Why can't I see the widget or shortcode builder as mentioned in the features listing?

Those features are only available if you are running WordPress 2.8 or later.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(11 ratings)