Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Random – Featured Venues Reply To: Random – Featured Venues

#32860

Michael

Hi Crerem
Thanks for your answer, but I can see a difference. When I refresh the page, the restaurants are still the same. I want to show X NR of Featured venues and a X NR of all venues. (each group random) so that the user doesn’t see always the same restaurants.
——————–
The Site is online: http://www.dinnerclub.co.za (looks great as a restaurant site!)
——————–
There is a bug with the GPS! When you add 2 Venues with the same GPS, you have no chance to see the venues. When they are to close and you reach the max zoom level, you cant say what venue is under the Nr on the map!
(Is there a max. of Venues to show on the Google map? I want to add ~8000 Venues!)
——————–
The Theme is great!!!
——————–

Here is what I changed!!!

$args = array(
‘post_type’ => $type,
‘post_status’ => ‘publish’,
‘paged’ => 0,
‘posts_per_page’ => $post_number_total,
‘meta_key’ => ‘prop_featured’,
‘orderby’ => ‘rand ‘,
‘order’ => ‘DESC’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘property_category’,
‘field’ => ‘term_id’,
‘terms’ => $category_of_tax
)
)

);
}else{
$args = array(
‘post_type’ => $type,
‘post_status’ => ‘publish’,
‘paged’ => 0,
‘posts_per_page’ => $post_number_total,
‘meta_key’ => ‘prop_featured’,
‘orderby’ => ‘rand’,
‘order’ => ‘DESC’,

);
}