Wordpress:图片不会出现在单个帖子上

时间:2014-07-25 14:06:02

标签: php css wordpress

我的网站突然开始没有在单个帖子页面上显示精选内容图片或我的徽标,但通常在所有其他页面上显示。

例如,此页面左上角显示徽标:http://totallybigbrother.co.uk/news/ 并且此页面不会:http://totallybigbrother.co.uk/big-brother-2014-housemates-first-impressions/

另外,在第二个链接上,底部附近的“相关帖子”区域以前是4张图片,下面有措辞。

这发生在它自己身上。有没有人有什么建议?提前谢谢。

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php global $data ?>

 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"/>

    <title><?php wp_title('&laquo;', true, 'right'); bloginfo('name'); ?> - <?php bloginfo('description'); ?> </title>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php if(is_rtl()) { ?>
<link rel="stylesheet" href="<?php echo Lioit_URI; ?>/rtl.css" type="text/css" media="screen" />
<?php } else {?>

<?php }?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<?php if(!empty($data['custom_favicon'])) { ?><link rel="icon" type="image/png" href="<?php echo $data['custom_favicon']; ?>" /><?php } ?>
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<?php echo stripslashes($data['code_header']); ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php require Lioit_TM . '/css.php';?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<link rel="stylesheet" type="text/css" href="http://www.totallybigbrother.co.uk/wp-content/themes/liomagazine/ddimgtooltip.css" />

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">

<script type="text/javascript" src="http://www.totallybigbrother.co.uk/wp-content/themes/liomagazine/ddimgtooltip.js">

<?php if(is_front_page()) { ?>
<style> .mainWidgets { margin-top:-363px !important} </style>
<?php }; ?>


/***********************************************
* Image w/ description tooltip v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>



<!-- BEGIN Tynt Script -->
<script type="text/javascript">
if(document.location.protocol=='http:'){
 var Tynt=Tynt||[];Tynt.push('dZ977cXJir44ASacwqm_6r');
 (function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}
</script>
<!-- END Tynt Script -->

<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
    <?php if($data['theme_width'] == 'fixed') { ?>
    <div id="fixedContainer">
    <?php } else { ?>
    <div id="container">
    <?php }?>
            <div id="header" class="loadSmooth">

  <div id="logo">
<?php if($data['custom_logo'] !='') { ?>
                    <a href="<?php echo home_url(); ?>/" title="<?php bloginfo( 'name' ); ?>" rel="home">
                    <img src="<?php echo $data['custom_logo']; ?>" alt="<?php bloginfo( 'name' ) ?>" />
                    </a>
                    <?php } else { ?>
                    <a href="<?php echo home_url(); ?>/" title="<?php bloginfo( 'name' ); ?>" rel="home">
                    <img src="<?php echo Lioit_IMG; ?>/logo.png" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" />
                    </a>
                    <?php } ?>
                                    </div><!--End Logo-->

<div id="banner">
<center>

<script type="text/javascript" language="javascript" src="http://www2.glam.com/app/site/affiliate/viewChannelModule.act?mName=viewAdJs&affiliateId=1648491755&adSize=728x90"></script> 

</center>

</div>

<div id="content" class="loadSmooth">

 <!--End Banner-->



        </div><!--End Main Header-->
        </div><!--End Header-->


        <div class="topBar loadSmooth">
             <div class="inner">
<div id="hmbar">
<div style="padding-left:0px; margin-top: -1px; margin-left: 18px;">
</div>
<div style="margin: -50px auto auto -3px; position: static; width: 990px; ">

<a href="http://totallybigbrother.co.uk/ash-harrison/" rel="imgtip[15]">
<img src="http://totallybigbrother.co.uk/Housemates/ASH%20HARRISON.png" style="margin-top:4px"  alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/ashleigh-coyle/" rel="imgtip[13]">
<img src="http://totallybigbrother.co.uk/Housemates/ASHLEIGH%20COYLE.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/mark-byron/" rel="imgtip[2]">
<img src="http://totallybigbrother.co.uk/Housemates/MARK%20BYRON.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/helen-wood/" rel="imgtip[3]">
<img src="http://totallybigbrother.co.uk/Housemates/HELEN%20WOOD.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/new-housemate-pavandeep-paul-profile/">
<img src="http://totallybigbrother.co.uk/wp-content/uploads/2014/07/PAVANDEEP-PAUL.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/steven-goode/" rel="imgtip[4]">
<img src="http://totallybigbrother.co.uk/Housemates/STEVEN%20GOODE.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/winston-showan/" rel="imgtip[6]">
<img src="http://totallybigbrother.co.uk/Housemates/WINSTON%20SHOWAN.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/christopher-hall/" rel="imgtip[9]">
<img src="http://totallybigbrother.co.uk/Housemates/CHRISTOPHER%20HALL.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/chris-r-wright/" rel="imgtip[12]">
<img src="http://totallybigbrother.co.uk/Housemates/CHRIS%20R%20WRIGHT.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/tamara-steward-wood/" rel="imgtip[1]">
<img src="http://totallybigbrother.co.uk/Housemates/TAMARA%20STEWART-WOOD%20evicted.png" alt="Housemate"></a>
<a href=" http://totallybigbrother.co.uk/danielle-mcmahon/" rel="imgtip[5]">
<img src="http://totallybigbrother.co.uk/wp-content/uploads/2014/07/DANIELLE-McMAHON-evicted.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/matthew-davies/" rel="imgtip[7]">
<img src="http://totallybigbrother.co.uk/Housemates/MATTHEW%20DAVIES evicted.png" alt="Housemate"></a>
<a href=" http://totallybigbrother.co.uk/kimberly-kisselovich/" rel="imgtip[8]">
<img src="http://totallybigbrother.co.uk/wp-content/uploads/2014/07/KIMBERLY-KISSELOVICH-evicted.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/pauline-bennett/" rel="imgtip[10]">
<img src="http://totallybigbrother.co.uk/Housemates/PAULINE%20BENNETT%20evicted.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/toya-washington/" rel="imgtip[11]">
<img src="http://totallybigbrother.co.uk/wp-content/uploads/2014/06/TOYA-A-WASHINGTON-EVICTED.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/marlon-wallen/ " rel="imgtip[14]">
<img src="http://totallybigbrother.co.uk/wp-content/uploads/2014/07/MARLON-WALLEN-evicted.png" alt="Housemate"></a>
<a href="http://totallybigbrother.co.uk/jale-karaturp/" rel="imgtip[16]">
<img src="http://totallybigbrother.co.uk/wp-content/uploads/2014/07/JALE-KARATURP-evicted.png" alt="Housemate"></a>
</div></div>
<nav>
                <?php if ( has_nav_menu( 'mainmenu' ) ) { ?>
                <?php  wp_nav_menu ( array( 'menu_id' => 'topNavigation','container'=> '', 'theme_location' => 'mainmenu' )); ?>
                <?php } else { ?>
                  <ul id="topNavigation">
                     <li class="active <?php if (is_home()) {echo "current_page_item";} ?>"><a href="<?php echo home_url(); ?>" class="home"><?php _e('Home' , 'lioit' ) ?></a></li>
                     <?php wp_list_pages(array(
                    'title_li' => false
                  )); ?>
                  </ul>

                <?php } ?>
                </nav>
                <div class="topRss">   
                    <?php if(!empty($data['social_header'])) { ?>
                    <?php require Lioit_TM . '/social.php';?>
                    <?php } ?>
                </div><!--End topRss-->
            </div><!--End Top Bar Content-->
        </div><!--End TopBar-->

        <div id="mainNavigation" class="navigation loadSmooth">
            <div class="inner">
                <nav class="primary container">
                    <?php if ( has_nav_menu( 'mainnav' ) ) { ?>
                       <?php  wp_nav_menu ( array( 'menu_id' => 'dropmenu','container'=> 'ul', 'theme_location' => 'mainnav' )); ?>
                       <?php } else { ?>
                          <ul id="dropmenu">
                             <li class="<?php if (is_home()) {echo "current_page_item";} ?> home"><a href="<?php echo home_url(); ?>"><?php _e('Home' , 'lioit' ) ?></a></li>
                             <?php wp_list_categories('title_li=');?>
                          </ul>
                        <?php } ?>
                </nav>

        </div><!--End Main Menu--></div><!--End Main Menu-->


<div id="pushdown" style="margin:0 auto; width:970px;"> 

 <script  type="text/javascript" src="http://www2.glam.com/app/site/affiliate/viewChannelModule.act?mName=viewAdJs&affiliateId=1648491755&adSize=970x66"> </script> 
</div>            

        <div id="content" class="loadSmooth">
        <?php if( is_front_page()) { ?>
        <?php if($data['disable_top_bar'] != '0') { ?>

        <div class="notification ondemand hide">

            <?php if(!empty($data['note'])) { ?>
                <p><?php echo $data['note']; ?><a href="<?php echo $data['note_url']; ?>" target="_blank"><?php echo $data['note_text']; ?></a></p>
            <?php } ?>
            <a class="close" href="javascript:">
            <img src="<?php echo get_template_directory_uri(); ?>/images/icon-close.png" />
            </a>

        </div>

        <?php } ?>
        <?php } ?>
        <?php if($data['newsticker'] != '0') { 
             require Lioit_TM . '/ticker.php';
         } else { 
         } ?>
        <?php require Lioit_TM . '/top.search.php';?>

创建相关内容的代码:

<?php if(!empty($data['show_related'])) { ?>
                     <?php require Lioit_TM . '/related.php';?>

                <?php } ?>

数据库错误

wp_users: 1 client is using or hasn't closed the table properly
wp_usermeta: 4 clients are using or haven't closed the table properly
wp_posts: 5 clients are using or haven't closed the table properly
wp_comments: 2 clients are using or haven't closed the table properly
wp_options: 8 clients are using or haven't closed the table properly
wp_postmeta: 8 clients are using or haven't closed the table properly
wp_terms: 4 clients are using or haven't closed the table properly
wp_term_taxonomy: 4 clients are using or haven't closed the table properly
wp_term_relationships: 4 clients are using or haven't closed the table properly
wp_commentmeta: 2 clients are using or haven't closed the table properly

1 个答案:

答案 0 :(得分:0)

使用以下内容将所有内容从id="logo"替换为<!--End Logo-->,如果它仍然不起作用,则该页面使用不同的模板。

<div id="logo">
<a href="http://totallybigbrother.co.uk/" title="Totally Big Brother 2014 UK on Channel 5" rel="home">
<img src="http://totallybigbrother.co.uk/wp-content/uploads/2014/05/logomobile1.png" alt="Totally Big Brother 2014 UK on Channel 5">
</a>
</div>