I found the answer my self, the issue had to do with a line requesting the content of the metabox (as expected). The line:
'template' => get_template_directory() . '/lib/metaboxes/custom_textbox.php',
should have been changed to:
'template' => get_stylesheet_directory() . '/lib/metaboxes/custom_textbox.php',
According (to the WordPress Codex) will get the path for the main theme. If you want to access the child theme URl (even if your in the child theme apparently) you have to use get_stylesheet_directory()
(which I personally find the function name a little confusing as it’s a child theme directory that can be used for a lot more that just a custom stylesheet).
Further reading in Codex: get_template_directory()
, get_stylesheet_directory()
Related Posts:
- WPAlchemy: How to output values?
- WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]
- wp_editor loses data, perhaps an html_entity_decode problem?
- Set default value for radio button in WP Alchemy custom meta box?
- wpalchemi metabox doesn’t show value from my post type
- Include doesn’t work, getting strange path: (/usr/local/php53/lib/php) – Whats wrong? (WPAlchemy)
- using WPalchemy to output custom metabox from homepage template
- WP Alchemy – stripping my paragraph tags from textarea metaboxes
- Set Default Admin Screen options & Metabox Order
- How to set default screen options?
- Add “upload media” button in meta box field
- Does WordPress have a “Form API”?
- Metabox with checkbox is not updating
- Best practices for meta box placement?
- Hiding a theme’s meta box
- Access the environment of an admin page from another admin page
- Add filter ‘wpautop’ to meta box textarea
- add_meta_box does not go ‘side’
- Getting jQuery sortable items in custom metabox
- How do I stop HTML entities in a custom meta box from being un-htmlentitied?
- get_post_meta doesn’t work
- Dynamically Creating Meta Boxes
- Remove border on custom meta box
- Create a page Meta Box listing all blog users
- Position right sidebar metabox right below the publish metabox?
- MetaBox Layout for all users
- How to store multiple input values with same meta_key
- post-excerpt not one of the options under screen options
- How to remove/hide the predictive autocomplete popup when I type in the tag/term metabox
- make a excerpt on data from a meta box?
- metabox upload file
- How to add a SAVE button to replace PUBLISH on a custom post type?
- Why does get_post_meta not work with the posts page?
- Add_meta_box not appearing, but does appear in screen options
- Change the post date from a meta box
- update_post_meta and get_post_meta not working
- Convert textarea with wp_editor
- Repeatable custom meta fields
- Get all meta boxes values
- Metabox saves on Update or Publish, but not on Saving Draft
- metabox with custom post type values
- Checkbox on a meta box using CMB2 Plugin
- Decide Metabox Configurations for All Users
- metabox select – frontend display
- How to detect if metabox content was updated by the user
- how to save and get selected item id list with add_meta_box
- Adding metabox to wordpress plugins menu page
- How to add select list to meta box field?
- Get meta fields by meta box id
- cannot grab post meta from extended Walker_Category class properly
- Resetting admin post form on JS validation fail
- How do you List all Sidebars in a Metabox
- Condition display metabox in case the post is saved
- Save meta value as an array of arrays
- How to remove some metaboxes for CPTs?
- How to add metabox ONLY to specific WooCommerce product type [closed]
- input radio ‘checked’ saves, but select option ‘selected’ doesn’t
- How to use Gutenberg in CMB2?
- edit_page or edit-pages for current_user_can()?
- Editor meta box Showing but not saving
- How can i get multi checkboxes value in metbox?
- Insert media button will always add into the same tinyMCE editor
- Change the title of an Administration Panel
- echo the value of a a meta select box
- How to display multiple $meta_boxes into separate tables
- ShortCut on meta boxes
- How to add a textarea to only one of the fields of this custom metabox?
- Post edit screen: How to check if meta_box is registered?
- Custom Meta Data is not being saved
- how to update post content field in wordpress
- Post and Pages section inside WordPress admin are completely blank
- Saving multiple fields (dropdown and text) in custom metabox
- How to create a custom metabox like the wordpress provided tag metabox?
- Update Post meta with custom variable
- display all registered meta boxes
- Serving a custom featured image for mobile
- where can i see the registered new field for posts using register_meta() ?
- How to hide/show meta box using jQuery,if click on Drop-Down Menu
- wp_editor metabox does not output the saved html format
- Get value from meta box
- Adding Meta Box to Specific Submenu Page
- jQuery UI Sortable not Working With Metabox
- meta_box: update_post_meta for
- Can’t save drop down select date in meta boxes
- WordPress check if value equals and echo “checked”
- Custom metabox for file upload return empty filename
- Video slideshow
- Meta Box Value not saving / populating?
- Customer portal (posts as checklist)
- How to set default screen options?
- Reload meta box content with AJAX
- Option to delete value in metabox
- why esc_url not working in smartmetabox
- Change Default Custom Fields Metabox Name on cctm plugin
- How to create metabox that can be queried in the database?
- Form submit from modal window to parent window
- How to display meta box data using “Meta boxes as needed”
- Allow iframe in custom meta box
- Datepicker altField and altFormat to save a new meta key/value in a post?
- Is there a way to remove the Add boxes from the Screen Options menu metabox?