WordPress.org

Support

Support » Plugins and Hacks » Hacks » Custom Fields from data base outside the loop

Custom Fields from data base outside the loop

  • Hello.
    I want to display a Custom Fields from data base outside the loop, for exemple in this plugin (Igit related posts wordpress plugin). I want to disply the custom field after the image generated by this plugin. Can You help me ?

    With this code <?php echo get_post_meta($GLOBALS['current_id'], "custom-field-name", true); ?> in footer.php or sidebar.php everything seems ok, but the custom field not appear if i put this code on the plugin files.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Fields from data base outside the loop’ is closed to new replies.
Skip to toolbar