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 訂閱" />