Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
wordpress中的html页脚标记在[]中分别显示标记href&;边栏不来了_Html_Wordpress - Fatal编程技术网

wordpress中的html页脚标记在[]中分别显示标记href&;边栏不来了

wordpress中的html页脚标记在[]中分别显示标记href&;边栏不来了,html,wordpress,Html,Wordpress,在这里,发布日期旁边的“[]”中显示了作者元数据的href。代码正在使用页脚html标记,如果我删除了页脚标记,那么它工作正常 <footer class="entry-meta"> <span class="by-author">By <span class="author vcard"><a class="url fn n" href="http://smallbusinessauthority.com

在这里,发布日期旁边的“[]”中显示了作者元数据的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>
    <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 -->

顺便问一下。
即使是侧边栏也不会显示在此博客页面上。侧边栏的每个设置都是正确的,甚至它在文件中也进行了适当的缩放

    <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 -->
模板文件中的代码为: “style=”左边距:30px;"> “title=”“rel=”书签“>

    <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 -->


您所描述的问题是由于CSS中的以下代码行造成的:

    <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 -->
footer a[rel=bookmark]:link:after,
footer a[rel=bookmark]:visited:after {
    content: " [" attr(href) "] "; /* Show URLs */
}
()

    <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 -->
他们将
[
]
放在您的页脚周围。 您可以在自己的CSS类中重写它,或者如果可以的话将其删除。 这基本上将您的
href
属性包装在
[]
中,并将其作为链接的内容

    <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 -->

有关更多解释,请参阅

发布整个页面的代码,这样我们就可以看到您正在使用的模板标记。我对代码提出了疑问您正在回显_permalink()--该函数已经打印出了链接。如果使用get_the_permalink(),则只需回显它。我在datetime=“2013-07-31T07:45:27+00:00”class=“输入日期”上通过“class=”url fn n“>管理员进行了更改,但仍然是一样的“>2013年7月31日。如果我把页脚改成页脚1,那么它就来了。忘了音调的事情,侧边栏也不来了。它背后的问题是什么?侧边栏是什么意思?上面写着:“就业管理营销-内容营销效率”?正确的观点就像但不知道它是如何发挥作用的如果你设置
。网站内容{width:72%;}
它应该起作用。它现在设置为
auto
,将侧边栏移到底部。
    <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 -->