首页 文章

wordpress中的html页脚标签在[]和侧边栏中分别显示标签href

提问于
浏览
0

这里http://smallbusinessauthority.com.au/blog/,href显示在"[ ]"中,作为发布日期旁边的作者元 . 代码使用页脚html标记,如果我删除页脚标记,那么它工作正常 .

<footer class="entry-meta">
                        <span class="by-author">By <span class="author vcard"><a class="url fn n" href="http://smallbusinessauthority.com.au/author/admin/" title="View all posts by admin" rel="author">admin</a></span></span> on <a href="http://smallbusinessauthority.com.au/objectives-management-the-key-to-success-for-the-largest-to-the-smallest-businesses-and-what-the-solution-providers-dont-tell-you/" title="8:59 am" rel="bookmark"><time class="entry-date" datetime="2013-07-29T08:59:20+00:00">July 29, 2013</time></a>.                    </footer>

甚至侧边栏也未显示在此博客页面上 . 侧边栏的每个设置都是正确的,甚至在文件中正确显示 .

模板文件中的代码是:“style =”margin-left:30px;“>”title =“”rel =“bookmark”>

<footer class="entry-meta">
        <?php if ( is_single() ) : ?>
            <?php //twentytwelve_entry_meta(); ?>
        <?php else : ?>
            <?php twentytwelve_entry_meta(); ?>
        <?php endif; ?>
    </footer><!-- .entry-meta -->
    </header><!-- .entry-header -->

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    <div class="entry-summary">
        <?php the_excerpt(); ?>
    </div><!-- .entry-summary -->
    <?php elseif ( is_single() ) : ?>
    <div class="entry-content" style="padding-bottom:20px; padding-top:0px;">
        <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
    </div>
    <?php else : ?>
    <div class="entry-content" style="padding-bottom:20px; padding-top:0px;">
        <?php echo substr(get_the_content(), 0 , 300). "...."; //the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
        <a href="<?php echo the_permalink(); ?>">Read More</a>
    </div><!-- .entry-content -->
    <?php endif; ?>
</article><!-- #post -->

1 回答

相关问题