Change the line
<?php echo apply_filters('the_content', get_post_meta($page->post_content, 'custom_tagline')); ?>
to
<?php echo apply_filters('the_content', get_post_meta($page->ID, 'custom_tagline')); ?>
See http://codex.wordpress.org/Function_Reference/get_post_meta
Related Posts:
- filtering custom post types via meta data drop down
- Footnotes in custom fields
- change attachment custom field onChange event
- Custom post meta field effect on the performance on the post
- Difference between meta keys with _ and without _ [duplicate]
- Orderby meta_value only returns posts that have existing meta_key
- What is “meta_input” parameter in wp_insert_post() used for?
- How to enable revisions for post meta data?
- Apply the_content filter to a custom field with multiple values
- Auto sort the wp-admin post list by a meta key
- Is there a hook / action that is triggered when adding or removing a post thumbnail?
- Filter results with custom field values and dropdown
- passing argument to get_template_part() or a better way to code
- Archive sorting functions by custom fields (front-end)
- Get updated meta data after save_post hook
- Create meta boxes that don’t show in custom fields
- Ordering posts by anniversary using only day and month
- How do I assign this filter to a variable? (Appending php & markup to the_content)
- How to break meta values into different items and avoid duplicates?
- ajax delete value from custom field array
- How to use pagination with get_post_meta
- Copying Custom Meta Values from existing post to a duplicate post
- Move value of one custom field to another
- Displaying posts with only upcoming dates according their custom field date value
- How to filter a dd/mm/yyyy date from a custom field in a query
- Custom fields: In what order are they saved into the DB?
- Get a post_id where meta_value equals something in a serialized meta_value field
- How to save a ToggleControl value in a meta field?
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- Force hide custom field metaboxes
- How to display Meta Field Value?
- MySQL query to set wp_postmeta using term_taxonomy_id value
- How to Validate Post Meta type/extension (Video File Image File etc)
- Custom Meta Box not Saving in Posts with Gutenberg Editor
- How can I sort homepage by a meta value?
- How do I use wp_query for WordPress search?
- Nav Menu – Add class based on meta keys
- How to wrap meta values seperated by comma in ? [closed]
- Bulk remove post meta
- How to create html block to display extra information on woocommerce single product page
- Create Multiple File Upload Metabox in WordPress
- Run a check for multiple meta key values
- WordPress Rest API to call page data associate with custom meta
- Hide custom meta data if empty
- Advanced Custom Fields dynamic update_field
- How to create a shortcode to print specific values stored in a post meta array?
- Button inside Custom Meta Box triggering the Update Button
- How to get categories with posts by custom field value?
- How to load an assets based on custom field value?
- Custom WP_Query for WordPress Search Results with meta_query
- How can you include custom post meta in search without calling each key?
- Can I access a post meta field before the loop?
- wrap text around custom fields array
- How can I modify RSS item titles to be either the title or a custom meta field?
- Avoiding ACF get_field and returning to core WordPress function
- Get all the posts where meta field with multiple choice has several values checked
- wordpress custom loop ascending descending posts by custom field
- Move Title and the Content WYSIWYG editor position
- Hide custom fields when empty
- How do I query the title (or handle?) of post meta fieldset (created with Simple Fields Plugin)
- Save all the post tags inside a custom field
- How add multiple wp_editor_box to new post
- Update post meta custom field using block editor
- Get custom fields without _edit_last, _edit_lock, _wp_page_template and _visual-subtitle
- Get YouTube video id from url in a custom field
- Related query shows same image in loop
- Is there a way to dump all registered sidebar/widget?
- Why am I getting a “Call to member function format() on a non-object” error?
- Can’t Output get_post_meta?
- Let Users Filter Posts by Custom Fields
- Modify custom field from front end
- Custom Query: query by post custom meta data
- Filter search posts by post meta?
- get_post_custom_values problem, please help
- update_post_meta not working well
- How can I change author of posts to the value of one of the custom field of the posts?
- Custom meta fields and meta keys
- How to add a post’s view count into the WordPress API response
- WP meta_query args not working in function
- Can’t set custom meta fields for a post
- Saving Custom Field that includes Quotation marks
- Post meta data not showing in frontend, until hitting ‘update’ button
- How to add content with a filter when there’s no content in the editor
- Query Posts based on custom field value
- Echo out custom fields in comments
- Save values generated via API as custom meta fields
- Query postmeta values, and return multiple post_titles for common meta value
- When post is updated, custom metadata in text area field is overwritten
- Display Child Page with custom fields within Parent Page
- Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete
- update_post_meta not working in action hook
- Custom Field: Display only if a specific key is selected outside the loop
- When editing a post with a custom meta box the values aren’t displaying correctly
- Hard Define Custom Field Value
- Create widget that filters posts on current page based on entered value
- add_post_meta insert null value into Database
- How do i output images from URL’s added to the same custom field key
- Retrieving custom field as shortcode
- add multiple values (array) to post meta_input
- Site uses wpdb to fetch meta_keys but just displays first meta_key from a page (the post uses the same meta_key “filmmaker” more than once)