wpalchemy icon indicating copy to clipboard operation
wpalchemy copied to clipboard

Meta Fields & Table Issues

Open jtittle opened this issue 13 years ago • 2 comments

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!

jtittle avatar Nov 28 '11 20:11 jtittle

try using:

<?php $metabox->the_group_open( 'tr' ); ?>

and remove your TR tags

farinspace avatar Nov 28 '11 21:11 farinspace

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

jtittle avatar Nov 28 '11 21:11 jtittle