The plugin “wp-table reloaded” is an excellent plugin.it has good GUI for managing different tables( different number of columnns and rows),managing data — adding/updating/deleting/hiding.its easy to use-just add in your post the shortcode of “[table id={}/] and that’s it.
wp-table reloaded has also nice GUI managment for CSS’ing it.althought this spesdific fetures sometine fails to work , thus you need to go straight to the plugin core CSS and change it there, its good enought.
I had a simple task which i used wp-table reloaded plugin.i needed to show a list of human point of views.for that i created a table with one column , and imported (another great feature) a CSV file.2 minutes work
BUT,
the default presentation of the table is done with <table/td/tr> HTML tags, and i had to show the table using <UL/LI> tags.
So after going in the core plugi code, i finally came up with the solution.
note:it might be easier but from the doc reading from the wp-table reloaded site i didnt saw anything to solve it
So , here is src :
if ( !defined( 'WP_TABLE_RELOADED_ABSPATH' ) ) exit; // no direct loading of this file
$WP_Table_Reloaded_Frontend = new WP_Table_Reloaded_Controller_Frontend();
$table = $WP_Table_Reloaded_Frontend->load_table( 2);
$rows = count( $table['data'] );
$i = 0;
while($i<40){
$row = $table['data'][ $i ];
$cell_content = $row[ 0];
echo "".$cell_content."";
$i=$i+1;
}
lets get thru it:
first we need to create an instance of the Table_Reloaded_Frontend class
$WP_Table_Reloaded_Frontend = new WP_Table_Reloaded_Controller_Frontend();
this line is getting the spesifc table :
$table = $WP_Table_Reloaded_Frontend->load_table( 2);
then to get the number of rows in the table
$rows = count( $table['data'] );
And after it simple iteration in the rows retrieving a spesific cell
$i = 0;
while($i<rows){
$row = $table['data'][ $i ];//get the current row
$cell_content = $row[ 0];
//get the first columc.if neededd use a second iteration like row[j] whic j runs //the number of columns
that it.after it you can use the $cell_content varible in html
Conclusion:
wp-table reloaded a good plugin.in this article we show how to use it thru its api.
Popularity: 100% [?]
Following my monitoring, millions of persons on our planet receive the mortgage loans at various banks. So, there is a good possibility to receive a car loan in every country.
Buy cheap Paragon Disk Wiper 2010 Oem Software Version
Buy cheap AutoDesk AutoCAD 2010 Oem Software Version
Buy cheap Araxis Merge Professional 2009 3750 Oem Software Version
Buy cheap Adobe Acrobat X Pro 10.0 Oem Software Version
Buy cheap DeLorme Street Atlas USA 2009 Plus Oem Software Version
online cheap Adobe in Daly City
I have been following posts. I perpetually find you articles enlightening.
Individuals meant for greatness will be tested and have to take care of road blocks while people that are destined for mediocrity will have it effortless