Sunday 8 October 2017

Price Sort Number Value Wordpress Meta Value

/*Price Sort Number Value*/ function alter_query_so_15250127($query) {
if ( !is_admin() && $query->is_main_query() && is_archive()) {

$query->set('post_type','listings');
$query->set('meta_key', 'price_value');
$query->set('orderby', 'meta_value_num');
$query->set('order', 'DESC');

}
}
add_action('pre_get_posts','alter_query_so_15250127');

Angular2 : Create a Simple Angular2 Component

How to Create a Simple Angular2 Component and here is that command:
ng generate component test-component --inline-template

Google Map Filter Api Example

Here is Google Map Filter Api Example: