php程式的網站如何在頂部調用一個已經單獨存在的html頁面

來源:互聯網
上載者:User
php程式的網站怎麼在頂部調用一個已經單獨存在的html頁面
wordpess怎麼在頁面上調用一個獨立的html頁面

我要在wordpress 的頂部調用一個已經存在的單獨的html頁面 要怎麼才能實現

因為修改了html用了一些CSS 直接用代碼會造成頁面錯位,所以只能調用html頁面


PHP code
<?php     global $page, $paged;    if(is_home()){ $options = get_option('xiaohan_options'); echo($options['indextitle']);}else{wp_title( '|', true, 'right' );    bloginfo( 'name' );    if ( $paged >= 2 || $page >= 2 )        echo ' | ' . sprintf( __( 'Page %s', 'xiaohan' ), max( $paged, $page ) );    }?>post_excerpt) {        $description = $post->post_excerpt;    } else {        $description = utf8_CsubStr(strip_tags($post->post_content),0,190);    }    $keywords = "";    $tags = wp_get_post_tags($post->ID);    foreach ($tags as $tag ) {        $keywords = $keywords . $tag->name . ", ";    }} elseif (is_category()){    $description = strip_tags(category_description());    $categoryname = get_the_category();    $keywords = $categoryname[0]->cat_name;}?>  //下面這行是代碼,想要在這位置插入,因為修改了html用了一些CSS 直接用代碼會造成頁面錯位,所以只能調用html頁面>                        

/">

ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && $image[1] >= HEADER_IMAGE_WIDTH ) : // Houston, we have a new header image! echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); else : ?> ">" width="" height="" alt="" /> &link_after='); ?> " target="_blank" rel="nofollow">/images/rss_ico.gif" width="85" height="36" alt="RSS 訂閱" />
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.