• adrigm

    (@adrigm)


    The code gives a notice in the search.php file as it has $ post-> ID, the solution is to add two lines:

    function oh_add_script() {
        global $post;
        <strong>if (!isset($post)) return;</strong>
        $output = get_post_meta($post->ID,'_oh_add_script_header',true);
        echo stripslashes($output);
        $sogo_header_footer =  get_option('sogo_header_footer');
        if(isset($sogo_header_footer['oh_header'])){
            echo stripslashes($sogo_header_footer['oh_header']);
        }
    
    }
    function oh_add_script_footer() {
        global $post;
        <strong>if (!isset($post)) return;</strong>
        $output = get_post_meta($post->ID,'_oh_add_script_footer',true);
        echo stripslashes($output);
        $sogo_header_footer =  get_option('sogo_header_footer');
        if(isset($sogo_header_footer['oh_footer'])){
            echo stripslashes($sogo_header_footer['oh_footer']);
        }
    
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Warning Search Page’ is closed to new replies.