调用未定义的函数get_header()错误

时间:2015-05-11 13:08:55

标签: php wordpress

我刚将模板转移到网络托管,现在我收到了错误:

  

致命错误:在第2行的/home/a3275045/public_html/index.php中调用未定义的函数get_header()

我的index.php源代码是:

<?php 
get_header();?>

<?php
    $get_meta = get_post_custom($post->ID);
    $weblusive_sidebar_pos = isset( $get_meta['_weblusive_sidebar_pos'][0]) ? $get_meta["_weblusive_sidebar_pos"][0] : 'full';

    get_template_part( 'library/includes/page-head' ); 
?>
<div id="content">
    <div class="page-banner">
        <div class="container">
        </div>
    </div>
    <div class="blog-box">
        <div class="container">
            <div class="row-fluid">
               <div class="col-md-9 blog-side">
                    <?php 
                        $temp = $wp_query;
                        $wp_query= null;
                        $wp_query = new WP_Query();
                        $pp = get_option('posts_per_page');
                        $wp_query->query('posts_per_page='.$pp.'&paged='.$paged);           
                        get_template_part( 'loop', 'index' );
                        wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'orbit7' ), 'after' => '</div>' ) ); 
                    ?>
                </div>
                <?php  get_sidebar(); ?>
            </div>
        </div>
    </div>
</div>
<?php get_footer();?>

0 个答案:

没有答案