WordPress.org

Ready to get started?Download WordPress

Forums

Custom fields and post meta for single posts (2 posts)

  1. Drawer2
    Member
    Posted 2 years ago #

    For 2 days I've been trying to get custom fields to appear correctly.

    In index file, this: <?php the_meta(); ?> works to display the custom field. However, it doesn't show up on any single posts. Have tried single.php and function.php about 60 times, using:

    <?php echo get_post_meta($post->ID,'Dark_Thoughts', true); ?>
    <?php echo get_post_meta(get_the_ID(),'Dark_Thoughts', true); ?>
    <?php echo types_render_field("Dark_Thoughts", array('output'=>'html')); ?>
    <?php echo c2c_get_current_custom('dark_thoughts'); ?>">

    I've found these codes in the forum or in the Codex. None of them work in many variations, and I've tried them in many places in the single.php. Can someone look at this with fresh eyes and please help me out?

    Here's what it looks like on index page. As you can see, custom field not appearing on any single post. http://chocolatecartoons.com/

  2. Drawer2
    Member
    Posted 2 years ago #

    I'm back, same problem continues.

    Does anyone know how I can enable Custom Fields - that is, post-meta-data -- in single posts? It only shows up on the index home page, NOT on single posts when looked at individually.

    Thanks for any response. Even a hint would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic