After reviewing your code there are a couple of things you need to change depending on where the meta content is being held.
If you try
$meta = get_post_meta( get_the_ID(), 'custom_text', TRUE );
echo 'The meta content is: ' . $meta;`
That should give you the appropriate meta.
You are calling this function on the page content, so unless the meta content is being held there nothing will be output.
Hope that helps!
Related Posts:
- Passing error/warning messages from a meta box to “admin_notices”
- Add “upload media” button in meta box field
- get registered metaboxes by post type or post ID
- How to get meta box data to display on a page
- esc before saving or before displaying does it matter?
- Add a meta description to home page?
- Check if meta key value already exists
- get_post_meta doesn’t work
- Metabox of one post influence setting on other
- How to store multiple input values with same meta_key
- Consolidate Metaboxes into 1 Big Metabox
- unable to save post meta on single field with multiple selects
- metabox upload file
- Why is variable value emptry in $_POST but available in $_REQUEST?
- Why does get_post_meta not work with the posts page?
- Change the post date from a meta box
- update_post_meta and get_post_meta not working
- Repeatable custom meta fields
- how to save multiple checkboxes value in wordpress dynamically
- Using WYSIWYG In custom meta boxes
- Multiplicate entry on update_post_meta
- Undefined index error in custom post metabox
- Custom Meta box only returns most recent value on page
- How to prevent further updates of custom meta when using actions to set one meta based on another
- How to create a button click counter meta box?
- meta box & callback function
- $_GET & $post_ID
- get_post_meta as a list for drop down search filter
- Parse a text area custom meta box and assign as value to existing meta keys
- Getting metabox value?
- Hide Page Title with Post Meta
- Save meta data with post, Without using any plugin [closed]
- Editor meta box Showing but not saving
- How can i get multi checkboxes value in metbox?
- Show value of select dropdown in meta box
- remove a single post_meta
- Echo 2 values from one key in Array with get_post_custom
- save radio button selection in post-meta on submit
- post meta – problem : copy the same meta for all the articles
- Custom Meta Data is not being saved
- Update Post Meta in Front End with a form
- Update Post meta with custom variable
- get_post_meta not working on my custom-function page
- update_post_meta doesn’t work
- Removing Meta Generator
- Only allow one meta key value per post in a category
- use post meta in add_meta_boxes action
- Custom meta box not saving values of radio buttons in WordPress
- Can’t save drop down select date in meta boxes
- update_post_meta does not work
- add_post_meta not saved
- when saveing $meta_box i get Undefined index error
- Updating post meta and Meta Box plugin
- Related posts and custom meta_box?
- Select Options Meta Data is Not Updating in Edit Meta Box
- How to display meta box data using “Meta boxes as needed”
- Metadata in loops
- Allow iframe in custom meta box
- Calling Data from Custom Meta Box
- How can i remove blank area caused by theme’s post meta boxes?
- Datepicker altField and altFormat to save a new meta key/value in a post?
- My meta box don’t want to save value
- CPT posts in drop downed in meta box on page doesn’t return post ID
- Remove the Yoast SEO Post Metabox [closed]
- How to add a class to meta box
- Editing Screen: Make Update or Publish Button Follow The Page
- Custom meta box shown when template is chosen [duplicate]
- Modifying the main editor priority
- How to make a meta box field a requirement
- How to remove the RichText Meta Box
- How to generate a featured image from a video embeded in a metabox
- Meta box io oembed returns list not array
- Add a custom field to top attribute in WooCommerce
- wp_editor in metabox not working
- Select box saves but doesn’t update value in admin
- Change Metabox Title
- add wp_editor to custom_meta_box
- update post meta for checkbox in the admin when inserted in the front-end
- Show Meta Box On Specific Page Template
- Adding meta box without add_meta_box – is this bad?
- saving data entered into a Metabox into an array? for use with for/each output.
- How to get the meta box name and value
- How can you include custom post meta in search without calling each key?
- add_post_meta | update_post_meta | Via the frontend
- multi custom fields and taxonomy search
- Migrating from metaboxes to wp_editor()
- Any way to update_post_meta with html content? It gets stripped and becomes empty
- Post meta select input, if statement
- How to make a metabox that contains link categories?
- meta box pop up upload button wont work
- I created a Custom Meta Box but it is not displaying the value on my post page
- Get meta values from parent post and save in child post
- Meta Box – Javascript Datatable
- Metabox on a custom page – How to include the appropriate default scripts and styles?
- custom metabox nonce verification fails
- Extensible add_meta_box with apply filters
- Generating image sizes when uploading through wp.media
- Best practices for meta box placement?
- Remove Title, Editor and Meta Box Support Based on Post Formats
- Saving an upload media meta box field