Query Posts (post meta)

Ok, this is your original meta conditions that describe that you want all posts where key with name from $hideFromHome equals (meta_compare is = by default) true (actually 1 since you concatenate boolean value with string). ‘&meta_key=’ . $hideFromHome .’&meta_value=” . true What you got in second snippet defines key name as pr_hidehome, value as … Read more

Run second query on page based on author of the first query

You can use the $post->post_author, so before your loop add $agent=””; then inside the loop add $agent = $post->post_author; and then create a second query after you loop ends: $agent_query = NEW WP_Query(array(‘post_type’ => ‘agent’, ‘author’ => $agent)); while ($agent_query->have_posts()){ $agent_query->the_post(); //do your agent loop here } wp_reset_postdata();

How to go to tag archives using a form

To understand how to do it you first need to know how the url query works or more specifically what query vars you need, so: ‘post_type’ – to filter by post types. ‘area’ – to filter by area taxonomy. ‘university’ – to filter by university taxonomy. so your url would look like: // http://www.domain.com/?post_type=properties&area=area_term&university=university_term Now … Read more