Code here: http://pastebin.com/EUs5kugU
Basically what I want it to do is:
1) Show the DATE someone registered in the users menu (check)
2) Allow the column to be sortable (... kinda check)
See, when I do that, I get the right URL and all
/wp-admin/users.php?orderby=login&order=asc
Except it sorts by USER name and not the field I want it to. Small problem ;)
Any ideas?
I've tried both methods here:
http://stereointeractive.com/blog/2011/02/26/wordpress-3-1-sortable-admin-tables/
http://scribu.net/wordpress/custom-sortable-columns.html
Thanks to Otto, I know what was wrong.
Two points:
1) You CANNOT sort by USER generated headers in the User Table because of how it draws from the database. Your plugin would have to write to the wp_users table (making new columns instead of using wp_usermeta) and EVEN THEN, the sortables are hard coded.
2) Since 'registered' is listed for MultiSite, you can leverage that.
Working code here: http://pastebin.com/pw4rDhTP
aaron2011
Member
Posted 1 year ago #
worked for me, thanks a lot, exactly what i needed, !
http://pastebin.com/pw4rDhTP
thanks, Ipstenu
Half-Elf Support Rogue & Mod
aaron2011
Member
Posted 1 year ago #
when i active it i got the following PHP error: 9both front and WP back end)
Warning: Cannot modify header information - headers already sent by (output started at /home/thebencompl/public_html/wp-content/plugins/Show-Registration-Date.php:1) in /home/thebencompl/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 78
still does what i need it to ...... i activate it and deactivate it when i have to ...
Hi, Would you know if there is a plugin that creates a table that will allow end users to fill in cells in that table, (similar to a form), but that would write to a database when submitted? (not a table that I make up myself in admin)?
Or is there a plugin that is close to that idea that could be expanded upon, like a petition plugin?
Hope this is alright to post here.
thanks!!
[sig removed]
Jaudrey - Make a new topic for yourself :D