sustydana
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Themes and Templates
In reply to: All the sudden..it stopped workinghere is the full code. where the “other recent post” repeats.
<div id="content"> <div class="home-post-list-1"> <h3 class="home-post-list">Other Recent Articles</h3> <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate[$post->ID] ) continue; ?> <?php $post_class = ('home-post-1' == $post_class) ? 'alt-home-post-1' : 'home-post-1'; ?> <div class="<?php echo $post_class; ?>" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php include (TEMPLATEPATH . '/postinfo.php'); ?> <div class="entry clearfix"> <?php the_content(''); ?> <div><a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continue Reading</a></div> </div> </div> <?php endwhile; endif; ?> <?php include (TEMPLATEPATH . '/bot-nav.php'); ?> </div> <br /> <div id="content"> <div class="home-post-list-1"> <h3 class="home-post-list">Recent Articles</h3> <?php $recent = new WP_Query("cat=1&showposts=4"); while($recent->have_posts()) : $recent->the_post();?> <a style="float:left;margin:10px;" href="<?php the_permalink() ?>" rel="bookmark"><?php echo get_the_image(array('Thumbnail','My Thumbnail'),'thumbnail','/wp-content/my-image.jpg'); ?> </a> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <p><font color="4dc5d6">By <?php the_author(); ?> ~ <?php the_time('F j, Y'); ?></font> <font size="1"><?php comments_popup_link('Comments', '1 Comment', '% Comments'); ?></font></p> <?php the_excerpt(); ?> <div style="border-bottom:2px dotted #f5851f; margin-bottom:10px; padding:10px; clear:both;"></div> <?php endwhile; ?> </div> </div> <?php } else { // Do stuff specific to non-first page ?> <div id="content"> <div class="home-post-list-1"> <h3 class="home-post-list">Other Recent Articles</h3> <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate[$post->ID] ) continue; ?> <?php $post_class = ('home-post-1' == $post_class) ? 'alt-home-post-1' : 'home-post-1'; ?> <div class="<?php echo $post_class; ?>" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php include (TEMPLATEPATH . '/postinfo.php'); ?> <div class="entry clearfix"> <?php the_content(''); ?> <div><a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continue Reading</a></div> </div> </div> <?php endwhile; endif; ?> <?php include (TEMPLATEPATH . '/bot-nav.php'); ?> </div>Forum: Themes and Templates
In reply to: Comment.php <h2> Showing up by defaultWorked — thanks
Forum: Themes and Templates
In reply to: Static Template blog not workingI posted twice by accident, here is the solution:
Forum: Themes and Templates
In reply to: Static Template blog not workingOkay I just wanna post my solution in case…any one else has this problem.
I placed:
<?php query_posts('showposts=10'); ?>before the loop in blog.php (template for the http://www.domainname.com/blog).My reading settings are default.
I also added a page.php (I need this in order for it to work right the query_post). If you don’t know what to include in your page.php use one from another theme so you can see how it works. That will give you an idea as to what goes into that template page.
Hope that helps — works for me.
Forum: Themes and Templates
In reply to: Static Template blog not workingAny help appreciated. Thanks in advance.
Viewing 5 replies - 1 through 5 (of 5 total)