Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

is there a built-in wordpress function to make the HTML or should I use plain-old PHP?

share|improve this question
    
See also comment here: core.trac.wordpress.org/ticket/17615 –  edelwater Jun 11 '11 at 9:34
    
See also: wordpress.stackexchange.com/questions/17661/… –  edelwater Jun 11 '11 at 9:52
    
    
Sorry misread the question. Thought it was XML. Please ignore my crazy answer. In fact, I'll delete it my self. –  RolandoMySQLDBA Jun 16 '11 at 15:34
add comment

1 Answer 1

up vote 10 down vote accepted

Since 3.1 there's a class WP_List_Table which makes it a hella lot easier to render tables for an array of data objects.

There's very little documentation (read: none) on it yet, but you can check out the source if you're familiar with PHP.

share|improve this answer
    
A good example of representing a random database table in \admin using new \WP_List_Table would be nice I think. There is not so much out there except for scribu's code in track. Maybe nice for the wiki. –  edelwater Jun 11 '11 at 9:30
    
(so the code to use for the intermediate solution while the api is not there) –  edelwater Jun 11 '11 at 9:52
1  
    
    
+1 ... but as @Rarst said: The class will change and get an API with the next versions. –  kaiser Jun 15 '11 at 21:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.