polenisland
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Single post template for custom taxonomies?Thank you very much for the contribution.
I Spent a long time to find something, but I could not get it.Ok perfect, I’ll continue trying to find the error.
Many thanks, Sincerely….Hi JBChristy.
I don’t provide a URL because is an web aplication in a internal network.Here is the code i modified in sorttablepost.php:
(Line 99)
// Create table header row echo '<table class="sortable" id="'. $opt_tableid .'"><tr>'; if( !$opt_nothumbs == 'true' ) { echo '<th class="sorttable_nosort"></th>'; } if( !$opt_notitles == 'true' ) { echo '<th>Nombre</th>'; } if( !$opt_nodates == 'true' ) { echo '<th>Date</th>'; } if( !$opt_excerpts == '' ) { echo '<th>' . $opt_excerpts . '</th>'; } if( $opt_meta ) : foreach( $opt_meta as &$key ) { list($field, $title) = explode('|', $key); if (!empty($title)) { echo '<th>' . sanitize_text_field($title) . '</th>'; $key = $field; } else { echo '<th>' . $key . '</th>'; } } endif; if( !$opt_nocats == 'true' ) { echo '<th>' . $catlabel . '</th>'; } if( !$opt_notags == 'true' ) { echo '<th>' . $taglabel . '</th>'; } echo '</tr>';And this is the code which i add in page to show the table:
[sorttablepost id="tablasolares" type="solares" meta="sol-referencia|Ref.,sol-tecnologia|Tecnología,sol-cliente|Cliente,sol-localizacion|Loc.Geográf.,sol-potencia|Pot.Pta(mW),sol-lazos|Núm.Lazos,sol-area-colectores|Área Col.(m²),sol-tipo|Tipo Col.,sol-area-planta|Área Pta.(m²),sol-temperatura|Temp.Vap.(ºC),sol-presion|Pres.Vap.(bar),sol-almacenamiento|Alm.Térm.,sol-tipo-almacenamiento|Tipo Alm.,sol-horas|Horas Alm.,sol-fecha|Fecha Contrat.,a| ,a| " nothumb="true" nodate="true" nocats="true" notags="true"]If not add the
.,a| ,a| "at the end of code, the “sol-fecha” show the same of “sol-horas”, but show two cells in blank at the end of the table.I hope you can help me…
Many many thanks for your interest.Sorry not the first paramaters in all columns, the last Custom Fields (Horas) shows the parameter of the penultimate (Cliente).
If add other Custom Fields shows always the penultimate paramater.This is my code:
[sorttablepost type="solares" meta="sol-referencia|Referencia,sol-potencia|Potencia,sol-cliente|Cliente,sol-horas|Horas" nothumb="true" nodate="true" nocats="true" notags="true"]Hi JBChristy!
Your contribution is quite interesting but do not get it to work 100%.
I changed the code of sorttablepost.php and the shortcode as you say.
The custom titles of the headers is OK, but the custom fields parameters shows the first paramater in all columns.
Do you know what happens? Could you help me?
I hope I expressed myself clearly.Thank you very much!