admin管理员组文章数量:1122832
I cannot get the main blog page with the current blog to show the current blog title. It shows on all other pages, just not the current/most recent blog. Any help will be greatly appreciated. Thank you.
<div id="page">
<div id="contentleft">
<?php if ( $paged < 2 ) { // Do stuff specific to first page?>
<?php $my_query = new WP_Query('category_name=featured&showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID;?>
<div class="featurepost" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>"><?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="postinfo">By <?php the_author_posts_link(); ?> on <?php the_time('M j, Y') ?> in <?php the_category(', ') ?> | <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?><?php edit_post_link('Edit', ' | ', ''); ?></p>
<div class="entry">
<?php the_content('Read the rest'); ?>
</div>
</div>
<?php endwhile; ?>
I cannot get the main blog page with the current blog to show the current blog title. It shows on all other pages, just not the current/most recent blog. Any help will be greatly appreciated. Thank you.
<div id="page">
<div id="contentleft">
<?php if ( $paged < 2 ) { // Do stuff specific to first page?>
<?php $my_query = new WP_Query('category_name=featured&showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID;?>
<div class="featurepost" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>"><?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="postinfo">By <?php the_author_posts_link(); ?> on <?php the_time('M j, Y') ?> in <?php the_category(', ') ?> | <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?><?php edit_post_link('Edit', ' | ', ''); ?></p>
<div class="entry">
<?php the_content('Read the rest'); ?>
</div>
</div>
<?php endwhile; ?>
Share
Improve this question
asked May 8, 2013 at 21:48
Natalie OlsonNatalie Olson
112 bronze badges
7
|
Show 2 more comments
1 Answer
Reset to default 0I believe that first page is your index.php, and I would guess that the code within that file is different from single.php, which is the file used by pages 2 onwards.
本文标签: Blog Title not showing up on main Blog page
版权声明:本文标题:Blog Title not showing up on main Blog page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736287321a1927853.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
<h2>
using Firebug into your blog URL. The hierarchy I found is: – Mayeenul Islam Commented May 9, 2013 at 4:46