farinspace / wpalchemy

Thin framework for wordpress
http://wpalchemy.com/
Other
415 stars 112 forks source link

Meta Fields & Table Issues #37

Open jtittle opened 12 years ago

jtittle commented 12 years ago

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!

farinspace commented 12 years ago

try using:

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

and remove your TR tags

jtittle commented 12 years ago

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.