Exemplo n.º 1
0
                    </div>
                </section>
            </form>      
			
			<!-- EMPRESAS DESTACADAS -->
			
            <section id="content_mejores_empresas_home" class="bkg_points">
                <div class="shadow_long"></div>
                <div class="wrapper">
                    <!-- Sello anonimo -->
                    <aside class="anonimo"></aside>
                    <div class="clearfix"></div>
                        
                    <h2 class="titulo_sombreado">LAS EMPRESAS MEJOR CALIFICADAS</h2>
                    <?php 
$mas_votadas = getMasVotadas(3);
?>
                    <!-- Mejores empresas -->
                    
                    <?php 
foreach ($mas_votadas as $mas_votada) {
    //var_dump($mas_votada->post_id);
    $id_mas_votadas[] = (int) $mas_votada->post_id;
}
//var_dump($id_mas_votadas);
$args = array('post_type' => 'empresas', 'post__in' => $id_mas_votadas);
$my_query = new WP_Query($args);
//var_dump($my_query);
if ($my_query->have_posts()) {
    ?>
                        <ul class="listado_mejores_empresas">
Exemplo n.º 2
0
<?php

global $wpdb;
$result_users = count_users();
$usuarios_totales = $result_users['avail_roles']['editor'] + $result_users['avail_roles']['subscriber'];
$usuarios_registrantes = $result_users['avail_roles']['editor'];
$result_empresas = wp_count_posts('empresas');
$empresas_totales = $result_empresas->publish + $result_empresas->draft;
$empresas_revision = $result_empresas->draft;
$vot_query = 'SELECT count(*) as votos FROM f8c_wti_like_post';
$result_votos = $wpdb->get_row($vot_query, OBJECT);
$votos = $result_votos->votos;
$result_comments = wp_count_comments();
$comentarios_totales = $result_comments->total_comments;
$info_empresas = getInfoEmpresas();
$mas_vot = getMasVotadas(10);
?>

<style>
	.one_half{ width:48%; }
	.one_third{ width:30.66%; }
	.two_third{ width:65.33%; }
	.one_fourth{ width:22%; }
	.three_fourth{ width:74%; }
	.one_fifth{ width:16.8%; }
	.two_fifth{ width:37.6%; }
	.three_fifth{ width:58.4%; }
	.four_fifth{ width:67.2%; }
	.one_sixth{ width:13.33%; }
	.five_sixth{ width:82.67%; }
	.one_half,.one_third,.two_third,.three_fourth,.one_fourth,.one_fifth,.two_fifth,.three_fifth,.four_fifth,.one_sixth,.five_sixth{ position:relative; margin-right:4% !important; float:left; }