How to: Intergrate Awesome Weather Widget

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 9 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #32255

    Greg McEwan Marriott
    Buyer
    Post count: 36

    Here is how i added Awesome Weather Widget to Geodirectory listings pages so that it gets the weather for the town being displayed (https://wordpress.org/plugins/awesome-weather/)

    In awesome-weather.php after line 79

    $available_locales = array( 'en', 'es', 'sp', 'fr', 'it', 'de', 'pt', 'ro', 'pl', 'ru', 'uk', 'ua', 'fi', 'nl', 'bg', 'sv', 'se', 'ca', 'tr', 'hr', 'zh', 'zh_tw', 'zh_cn' );

    add this

    
    
    	
    	$current_location = geodir_get_current_location(array('echo'=> false));
    
    	
    	//add_action( 'geodir_after_listing_post_title', 'country_listing', 45 );
    	//function country_listing() {
    	global $post;
    	global $wp_query;
    
    	$postid = $wp_query->post->ID;
    	$postcity= geodir_get_post_meta($postid,'post_city',true); 
    	$postregion= geodir_get_post_meta($postid,'post_region',true); 
    	$postcountry= geodir_get_post_meta($postid,'post_country',true); 
    
    	//echo $postcountry." - ".$postregion." - ".$postcity;
    
    //}
    
    	$location = $current_location;
    		$location = $current_location.','.$postcountry;
    		//echo $location;	
    #32310

    Paolo
    Site Admin
    Post count: 31206

    Thank you for sharing…

    #34843

    rajatonnet
    Expired Member
    Post count: 101

    I tries this, but it is giving in “F” how should I change it to “C”

    #34934

    Paolo
    Site Admin
    Post count: 31206

    Hi Rajatonnet,

    you should ask here: https://wordpress.org/support/plugin/awesome-weather

    We don’t provide support for 3rd party plugins here.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket