wpalchemy
wpalchemy copied to clipboard
Meta Fields & Table Issues
We're trying to style the output of our meta boxes a little to make them a little neater than just having text and boxes by using tables and the WordPress table class widefat. The issues we're having are:
1). We can't add a new row with the table intact. We have to remove the table HTML to be able to add a row. Otherwise clicking the button does nothing.
2). We can't delete a row, for the same reason as above.
3). Using tables, an extra blank row is always added at the bottom and cannot be removed.
I've pasted our code below:
http://pastebin.com/eQxggzP6
Do we need to assign ID's or Classes to the TD's? Or perhaps something else?
Any help would be much appreciated!
try using:
<?php $metabox->the_group_open( 'tr' ); ?>
and remove your TR tags
Thanks a million! That worked like a charm! (and a 6 minute response!)
May want to add that to the docs as I didn't know that would accept and pass that value.
- Jonathan