Hi
I tried query_posts('meta_value=Bas-Rhin,Haut-Rhin');
and query_posts('meta_value=Bas-Rhin,Haut-Rhin&meta_key=cp_dpartement');
but it didn’t worked
I’ve done this and it’s working :
$querystr = "
SELECT wposts.*,wpostmeta.*
FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta
WHERE wposts.ID = wpostmeta.post_id
AND wpostmeta.meta_key = 'cp_dpartement'
AND ($dep)
AND wposts.post_status = 'publish'
AND wposts.post_type = 'post'
ORDER BY wposts.post_date DESC
";
$pageposts = $wpdb->get_results($querystr, OBJECT);
foreach($pageposts as $post):
...
endforeach
But i don’t know how to paginate this, and now to have my adress
https://www.mysite.com/carte/alsace