Title: Notice: Undefined variable: post
Last modified: August 30, 2016

---

# Notice: Undefined variable: post

 *  [pascalwp](https://wordpress.org/support/users/xmedias/)
 * (@xmedias)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/notice-undefined-variable-post/)
 * Notice: Undefined variable: post in
 * wp-content/plugins/alfie-wp-weather/alfie-wp-weather.php on line 156
 * Notice: Trying to get property of non-object in
    wp-content/plugins/alfie-wp-
   weather/alfie-wp-weather.php on line 156
 * Line 56:
    if ( is_active_widget( false, false, $this->id_base ) && !has_shortcode(
   $post->post_content, ‘alfie_wp_weather’ ) ) {
 * problem with $post->post_content Undefined ?!
 * [https://wordpress.org/plugins/alfie-wp-weather/](https://wordpress.org/plugins/alfie-wp-weather/)

The topic ‘Notice: Undefined variable: post’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/alfie-wp-weather_f6f1e6.svg)
 * [Alfie WP Weather](https://wordpress.org/plugins/alfie-wp-weather/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alfie-wp-weather/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alfie-wp-weather/)
 * [Active Topics](https://wordpress.org/support/plugin/alfie-wp-weather/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alfie-wp-weather/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alfie-wp-weather/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pascalwp](https://wordpress.org/support/users/xmedias/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/notice-undefined-variable-post/)
 * Status: not resolved