Acupuncteur Paris : trouvez votre acupuncteur à Paris.
‘cabinet’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => – 1,
‘orderby’ => ‘RAND’,
‘tax_query’ => array(
‘relation’ => ‘AND’,
array(
‘taxonomy’ => ‘profession’,
‘field’ => ‘name’,
‘terms’ => $thisposttitle,
),
array(
‘taxonomy’ => ‘codepostal’,
‘field’ => ‘name’,
‘terms’ => array(‘75000’, ‘75001’, ‘75002’, ‘75003’, ‘75004’, ‘75005’, ‘75006’, ‘75007’, ‘75008’, ‘75009’, ‘75010’, ‘75011’, ‘75012’, ‘75013’, ‘75014’, ‘75015’, ‘75016’, ‘75017’, ‘75018’, ‘75019’, ‘75020’, ‘75100’, ‘75110’, ‘75116’, ‘75120’, ‘75130’, ‘75140’, ‘75150’, ‘75160’, ‘75170’, ‘75180’, ‘75190’, ‘75200’, ‘75210’, ‘75220’, ‘75230’, ‘75240’, ‘75250’, ‘75260’, ‘75270’, ‘75280’, ‘75290’, ‘75300’, ‘75310’, ‘75320’, ‘75330’, ‘75340’, ‘75350’, ‘75360’, ‘75370’, ‘75380’, ‘75390’, ‘75400’, ‘75410’, ‘75420’, ‘75430’, ‘75440’, ‘75450’, ‘75460’, ‘75470’, ‘75480’, ‘75490’, ‘75500’, ‘75510’, ‘75520’, ‘75530’, ‘75540’, ‘75550’, ‘75560’, ‘75570’, ‘75580’, ‘75590’, ‘75600’, ‘75610’, ‘75620’, ‘75630’, ‘75640’, ‘75650’, ‘75660’, ‘75670’, ‘75680’, ‘75690’, ‘75700’, ‘75710’, ‘75720’, ‘75730’, ‘75740’, ‘75750’, ‘75760’, ‘75770’, ‘75780’, ‘75790’, ‘75800’, ‘75810’, ‘75820’, ‘75830’, ‘75840’, ‘75850’, ‘75860’, ‘75870’, ‘75880’, ‘75890’, ‘75900’, ‘75910’, ‘75920’, ‘75930’, ‘75940’, ‘75950’, ‘75960’, ‘75970’, ‘75980’, ‘75990’),
),
),
);
$my_querypsy = new WP_Query($argspsy);
if ($my_querypsy->have_posts()) {
while ($my_querypsy->have_posts()) : $my_querypsy->the_post();
$postid=get_the_ID();
$author = get_the_author();
$author_id = get_the_author_meta(‘ID’);
$fn = get_the_author_meta(‘first_name’);
$ln = get_the_author_meta(‘last_name’);
$nomprat = $fn. » « .$ln;
//$aslug = get_the_author_meta(‘nicename’);
$authorslug = get_author_posts_url( $author_id );
$picture50 = get_avatar( get_the_author_meta( ‘ID’ ), 65 );
$pays = get_post_meta( $postid, ‘pays’, true );
$cp = get_post_meta( $postid, ‘code_postal’, true );
$ville = strip_tags(get_post_meta( $postid, ‘ville_commune’, true ));
$argsmp = array(
‘post_type’ => ‘mon-profil’,
‘post_status’ => ‘publish’,
‘author’ => $author_id,
);
$myvarsmp = new WP_Query( $argsmp );
if( $myvarsmp->have_posts() ) {
while( $myvarsmp->have_posts()) {
$myvarsmp->the_post();
$authortitle = get_the_title();
}
wp_reset_postdata();
}
$outpsy .= «
« .$authortitle. »
« .$cp. » « .$ville. »
« ;
endwhile;
$outdisplayliv .= «
« ;
} // END if have_posts loop
wp_reset_query();
$argspro = array(
‘post_type’ => ‘professionnel’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => – 1,
‘orderby’ => ‘RAND’,
‘tax_query’ => array(
‘relation’ => ‘AND’,
array(
‘taxonomy’ => ‘profession’,
‘field’ => ‘name’,
‘terms’ => $thisposttitle,
),
array(
‘taxonomy’ => ‘codepostal’,
‘field’ => ‘name’,
‘terms’ => array(‘75000’, ‘75001’, ‘75002’, ‘75003’, ‘75004’, ‘75005’, ‘75006’, ‘75007’, ‘75008’, ‘75009’, ‘75010’, ‘75011’, ‘75012’, ‘75013’, ‘75014’, ‘75015’, ‘75016’, ‘75017’, ‘75018’, ‘75019’, ‘75020’, ‘75100’, ‘75110’, ‘75116’, ‘75120’, ‘75130’, ‘75140’, ‘75150’, ‘75160’, ‘75170’, ‘75180’, ‘75190’, ‘75200’, ‘75210’, ‘75220’, ‘75230’, ‘75240’, ‘75250’, ‘75260’, ‘75270’, ‘75280’, ‘75290’, ‘75300’, ‘75310’, ‘75320’, ‘75330’, ‘75340’, ‘75350’, ‘75360’, ‘75370’, ‘75380’, ‘75390’, ‘75400’, ‘75410’, ‘75420’, ‘75430’, ‘75440’, ‘75450’, ‘75460’, ‘75470’, ‘75480’, ‘75490’, ‘75500’, ‘75510’, ‘75520’, ‘75530’, ‘75540’, ‘75550’, ‘75560’, ‘75570’, ‘75580’, ‘75590’, ‘75600’, ‘75610’, ‘75620’, ‘75630’, ‘75640’, ‘75650’, ‘75660’, ‘75670’, ‘75680’, ‘75690’, ‘75700’, ‘75710’, ‘75720’, ‘75730’, ‘75740’, ‘75750’, ‘75760’, ‘75770’, ‘75780’, ‘75790’, ‘75800’, ‘75810’, ‘75820’, ‘75830’, ‘75840’, ‘75850’, ‘75860’, ‘75870’, ‘75880’, ‘75890’, ‘75900’, ‘75910’, ‘75920’, ‘75930’, ‘75940’, ‘75950’, ‘75960’, ‘75970’, ‘75980’, ‘75990’),
),
),
);
$my_querypro = new WP_Query($argspro);
if ($my_querypro->have_posts()) {
while ($my_querypro->have_posts()) : $my_querypro->the_post();
$protitle=get_the_title();
$propostid=get_the_ID();
$proauthorslug = get_permalink($propostid);
if(has_post_thumbnail($propostid)){
$propicture50 = get_the_post_thumbnail_url($propostid, ‘pro_thumb’);
}else{
$propicture50 = get_post_meta( $propostid, ‘pro_thumb’, true );
}
$procp = get_post_meta( $propostid, ‘pro_cp’, true );
$proville = strip_tags(get_post_meta( $propostid, ‘pro_ville’, true ));
if($propicture50==null){
$propicture50= »/mimages/annuaire/avatar_Les_Praticiens.png »;
}
$outpro .= «
« .$procp. » « .$proville. »
« ;
endwhile;
$outdisplaypro .= «
« ;
} // END if have_posts loop
wp_reset_query();
$totresults = $outpro.$outpsy;
$shuffledstring = explode(‘
‘, $totresults);
shuffle($shuffledstring);
$ok = implode(‘
‘, $shuffledstring);
echo «