Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Using WYSIWYG In custom meta boxes

So I figured this out almost immediately after posting this question (duh)

function business_facts_output( $post ) 
    {
    //so, dont ned to use esc_attr in front of get_post_meta
    $business_facts_value=  get_post_meta($_GET['post'], 'business_facts' , true ) ;
    wp_editor( htmlspecialchars_decode($business_facts_value), 'business-facts', $settings = array('textarea_name'=>'business-facts') );
}

Basically this bit here, where it says htmlspecialchars_decode($business_facts_value) needs to be changed. the htmlspecialchars_decode() function isn’t needed here, instead I just needed the $business_facts_value

Related Posts:

  1. Passing error/warning messages from a meta box to “admin_notices”
  2. Add “upload media” button in meta box field
  3. Post custom metabox textarea using wp_editor
  4. get registered metaboxes by post type or post ID
  5. How to get meta box data to display on a page
  6. esc before saving or before displaying does it matter?
  7. Add a meta description to home page?
  8. Modifying the main editor priority
  9. Check if meta key value already exists
  10. get_post_meta doesn’t work
  11. Metabox of one post influence setting on other
  12. How to store multiple input values with same meta_key
  13. Consolidate Metaboxes into 1 Big Metabox
  14. unable to save post meta on single field with multiple selects
  15. metabox upload file
  16. Why is variable value emptry in $_POST but available in $_REQUEST?
  17. wp_editor in metabox not working
  18. Why does get_post_meta not work with the posts page?
  19. How to get meta box values – WP tuts tutorial
  20. Change the post date from a meta box
  21. add wp_editor to custom_meta_box
  22. update_post_meta and get_post_meta not working
  23. Convert textarea with wp_editor
  24. Repeatable custom meta fields
  25. how to save multiple checkboxes value in wordpress dynamically
  26. Visual/Text tabs in wp editor Not Showing
  27. How to use MarkDown in a custom textarea field?
  28. Multiplicate entry on update_post_meta
  29. Undefined index error in custom post metabox
  30. Custom Meta box only returns most recent value on page
  31. wp_editor loses data, perhaps an html_entity_decode problem?
  32. How to prevent further updates of custom meta when using actions to set one meta based on another
  33. How to create a button click counter meta box?
  34. meta box & callback function
  35. $_GET & $post_ID
  36. get_post_meta as a list for drop down search filter
  37. Migrating from metaboxes to wp_editor()
  38. Parse a text area custom meta box and assign as value to existing meta keys
  39. Getting metabox value?
  40. Hide Page Title with Post Meta
  41. Save meta data with post, Without using any plugin [closed]
  42. Editor meta box Showing but not saving
  43. How can i get multi checkboxes value in metbox?
  44. Show value of select dropdown in meta box
  45. remove a single post_meta
  46. Echo 2 values from one key in Array with get_post_custom
  47. save radio button selection in post-meta on submit
  48. post meta – problem : copy the same meta for all the articles
  49. Custom Meta Data is not being saved
  50. Update Post Meta in Front End with a form
  51. Update Post meta with custom variable
  52. get_post_meta not working on my custom-function page
  53. update_post_meta doesn’t work
  54. wp_editor metabox does not output the saved html format
  55. Removing Meta Generator
  56. Only allow one meta key value per post in a category
  57. use post meta in add_meta_boxes action
  58. Custom meta box not saving values of radio buttons in WordPress
  59. Can’t save drop down select date in meta boxes
  60. update_post_meta does not work
  61. add_post_meta not saved
  62. when saveing $meta_box i get Undefined index error
  63. Updating post meta and Meta Box plugin
  64. Related posts and custom meta_box?
  65. Select Options Meta Data is Not Updating in Edit Meta Box
  66. How to display meta box data using “Meta boxes as needed”
  67. Metadata in loops
  68. Allow iframe in custom meta box
  69. Calling Data from Custom Meta Box
  70. How can i remove blank area caused by theme’s post meta boxes?
  71. Datepicker altField and altFormat to save a new meta key/value in a post?
  72. My meta box don’t want to save value
  73. CPT posts in drop downed in meta box on page doesn’t return post ID
  74. Create more Meta Boxes as needed
  75. Set Default Admin Screen options & Metabox Order
  76. How to set default screen options?
  77. Add a Meta Box for uploading a SECOND Featured Image?
  78. Does WordPress have a “Form API”?
  79. Metabox with checkbox is not updating
  80. How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button
  81. What is the “Advanced” $context in add_meta_box?
  82. Removing panels (meta boxes) in the Block Editor
  83. Change The Title Of a Meta Box
  84. What is the index [0] for on post meta fields?
  85. WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins
  86. How to make open/closed and hidden/shown metaboxes status saved on a per-post basis?
  87. How To Remove The “+ Add New Category” Link From A Category Metabox
  88. How can I create a taxonomy meta-box with search suggestions but no new terms input?
  89. Remove the Featured Image Meta Box
  90. Remove the Yoast SEO Post Metabox [closed]
  91. Best practices for meta box placement?
  92. Creating a metabox to upload multiple images
  93. How Does WordPress Remember Metabox Positions?
  94. Sample code for validating custom metabox?
  95. How to Add Reminders/Notes to New Post Meta Boxes
  96. How do I get attachment_id?
  97. Removing Metabox for “Slug” without removing functionality
  98. post formats – how to switch meta boxes when changing format?
  99. How to reorder meta box position?
  100. Prevent sorting and dragging of specific postbox metabox
Categories metabox Tags metabox, post-meta, wp-editor
How to display custom taxonomy images on index.php?
Ways to work offline with your WordPress

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress