Support » Fixing WordPress » Updated or new post and recently are not revealed in main page.

  • I dont know why, after post new post, still not been revealed in main page.

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    <div class="meta"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/cat.gif" alt="" /> Category: <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/com.gif" alt="" /> <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?></div>
    
    <div class="entry"><?php the_content(__('Read more'));?><br /></div>
    <div class="meta"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/cat.gif" alt="" /><?php if(function_exists('the_tags')) {$my_tags = get_the_tags();if ( $my_tags != "" ){ the_tags('Tags: ', ', ', '<br />'); } else {echo "Tags: None";} }?>
    <?php if(function_exists('UTW_ShowTagsForCurrentPost')) { echo 'Tags: ';UTW_ShowTagsForCurrentPost("commalist");echo '<br />'; } ?></div>
    <!--<?php trackback_rdf(); ?>-->
    <div class="postspace"></div><?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?><br />
    
    <h4>Recently <span>on <?php bloginfo('name'); ?></span></h4>
    <?php $my_query = new WP_Query('cat=1,2,3,4,5,6,7,8,9&showposts=8&offset=1'); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <div class="date">
    <div class="date-d"><?php the_time('d') ?></div>
    <div class="date-m-y"><?php the_time('M y') ?></div>
    </div>
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <div class="meta"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/cat.gif" alt="" /> Category: <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/com.gif" alt="" /> <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?><br /></div>

    I dont know, I just post here the code, maybe related.

    my blog, http://rilife.net

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Updated or new post and recently are not revealed in main page.’ is closed to new replies.