advanced search forms with 3 input text and that the main problem 3 input text

As you’ve already get results with tag I’m going to give suggestion only for address and rating. For your current situation, the best option is to use WordPress post meta to store these values. Then you can use meta query to retrieve those posts. $args = array( ‘post_type’ => ‘hotel’, ‘meta_query’ => array( array( ‘key’ … Read more

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I did similar thing recently but used the wp.media instead of ThickBox https://codex.wordpress.org/Javascript_Reference/wp.media with the same code from Codex. The only thing to make it work with multiple inputs is to move the frame variable from global scope to click function, so the ‘frame’ will be fresh for each click.

Custom post-type for page header images

This can be very well achieved using Advance Custom Field (ACF) plugin. In your header image post type I suggest you also add support for title so that you can easily identify the header images in the listing. For that you just need to update ‘supports’ => array(‘title’,’thumbnail’) As for your main question of assigning … Read more

Sort by custom field is not working

Piter is right, don’t use query_posts. You could do something like: $paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1; $args = array( ‘post_type’ => ‘properties’, ‘meta_key’ => ‘pd_city’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘ASC’, ‘posts_per_page’ => 5, ‘paged’ => $paged ); $query = new WP_Query( $args ); Just make sure you have the values … Read more