Timeline for Custom metabox not working
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 21, 2013 at 16:42 | vote | accept | tigre | ||
Feb 21, 2013 at 16:33 | comment | added | Chip Bennett |
Note on referencing code errors and line numbers: WPSE code doesn't add line numbers, so please explicitly identify the code on the line number referenced by any error. (In this case: line 224 .)
|
|
Feb 21, 2013 at 16:31 | comment | added | Chip Bennett |
Great! So we've verified 1) the include() is working as expected, and 2) the add_meta_box() calls are working as expected. Now we just need to address the specific errors in the add_meta_box() callbacks.
|
|
Feb 21, 2013 at 16:31 | history | edited | tigre | CC BY-SA 3.0 |
updated code and error/problem issue
|
Feb 21, 2013 at 16:26 | comment | added | tigre |
OK, I actually had to remove the function to add the metaboxes, now the boxes are showing up. But each metabox on the page is showing an error with each callback function. It's breaking at the first case within the switch. Posting the updated code above.
|
|
Feb 21, 2013 at 16:23 | comment | added | Chip Bennett | It seems that I'm not including the file properly, not sure where it's hanging - Actually, per your previous question, you've verified that you're including the file properly. The problem is now with the functional code itself. | |
Feb 21, 2013 at 16:22 | answer | added | Chip Bennett | timeline score: 1 | |
Feb 21, 2013 at 16:20 | comment | added | Chip Bennett |
So, the first step, before digging into all your metabox code: inside home-meta.php , can you create a very simple add_meta_box() call, and in the callback, just output some HELLO WORLD text?
|
|
Feb 21, 2013 at 16:20 | comment | added | tigre | as @ChipBennett said, I'm trying to have the metaboxes show up in the admin area for editing a post/page. It seems that I'm not including the file properly, not sure where it's hanging. | |
Feb 21, 2013 at 16:18 | comment | added | Chip Bennett | No, these are edit-post screen metaboxes. | |
Feb 21, 2013 at 16:16 | comment | added | s_ha_dum | Are you trying to include a meta box on the front end of the site? | |
Feb 21, 2013 at 16:12 | history | asked | tigre | CC BY-SA 3.0 |