dibritto
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [Profile Extra Fields by BestWebSoft] Profile extra fileds labelCtrl+C, Ctrl+v of topics answered, it would make it easier to say where to find the phrase to be changed simply that, but thanks anyway.
Forum: Plugins
In reply to: [Profile Extra Fields by BestWebSoft] Profile extra fileds labelYes the title “Profile Extra Fileds”
Forum: Developing with WordPress
In reply to: query repeated in the column meta_valuehi @bcworkz
Thanks for your help, I was able to solve it by creating a query and a LEFT JOIN, thanks for your help.
Forum: Developing with WordPress
In reply to: query repeated in the column meta_valueThis link does not clearly show how to get a query in 2 or more mata_value, the code I use is:
<?php // Lista os Usuarios que realizaram deposito $user_query = new WP_User_Query( array( 'meta_key' => 'ma_deposito', 'user_id' => 'ma_deposito', 'orderby' => 'meta_value', 'order' => 'ASC', 'number' => 10 ) );// coluna e valor da coluna // User Loop if ( ! empty( $user_query->results ) ) { _e('<div class="table-responsive">'); _e('<table class="table table-striped table-bordered table-hover table-condensed">'); _e('<tr>'); _e('<td class="active"><strong>Apelido</strong></td><td class="active"><strong>E-mail</strong></td><td class="active"><strong>Valor</strong></td>'); _e('</tr>'); foreach ( $user_query->results as $user ): _e('<tr>'); _e( '<td class="">'.$user->user_nicename.'</td><td class="">'.$user->user_email.'</td><td class="'.$user->ma_deposito_css.'">R$ ' . $user->ma_deposito .',00</td>'); _e('</tr>'); endforeach; _e('</tr>'); _e('</table>'); echo('<span class="pull-right"><strong>Total arrecadado:</strong> R$ '.$valortotal.',00 reais</span>'); _e('</div>'); } else { echo ' <div class="table-responsive"> <table class="table"> <tr> <td class="page-header alert alert-info text-center">Ainda não existe colaborações para este evento, seja o primeiro colaborador!. </td> </tr> </table> </div> ';}?>Here is an example of a user experiencing the same problem as me:
http://wordpress.stackexchange.com/questions/212190/issue-with-foreach-on-duplicate-meta-keys
Viewing 4 replies - 1 through 4 (of 4 total)