php - Error in search terms -


i help. site, when searching something, not match , says:

notice: trying property of non-object in /customers/3/a/2/**********ia.com/httpd.www/wp-content/themes.../assets.php on line 741

on line is:

    if ( $is_product || is_post_type_archive( 'nitro-gallery' ) || is_singular( 'nitro-gallery' ) || ( is_single() && 'gallery' == $format ) || is_tax( 'gallery_cat' ) || has_shortcode( $post->post_content, 'product_page' ) ) {         wp_enqueue_style( 'nivo-lightbox' );         wp_enqueue_script( 'nivo-lightbox' );     } 

add below line before if statement :

global $post; 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -