custom filed from post in the side bar August 27, 2022 by Tarik Billa If it’s a single post or page, you can just pass the global $post->ID: echo get_post_meta($post->ID, 'fb_name', true);