zionfm
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: Front Page Showing Full PostsOk, so i’m not so smart… it looks to me that the code already uses “content” rather than “excerpt”
<?php get_header(); ?> <div id="featured"> <div class="featured-content"> <?php query_posts('showposts=1'); if (have_posts()) : while (have_posts()) : the_post(); ?> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <?php the_content(''); ?> <div class="post-meta"> <a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Read More of <?php the_title_attribute(); ?>" class="btn btn-orange">Read More</a> <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?> | Posted by <span class="orange weight-normal"><?php the_author_link(); ?></span> </div> <?php endwhile; endif; ?> </div> </div> </div> <div class="left-content"> <?php // Fixes for post offset add_filter('post_limits', 'my_post_limit'); global $myOffset; $myOffset = 1; $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('offset=1'.'&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div class="post"> <div class="post-date"><span class="month block"><?php the_time('M'); ?> </span><span class="day"><?php the_time('d'); ?> </span></div> <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4> <?php the_content(''); ?> <div class="post-meta"> <a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Read More of <?php the_title_attribute(); ?>" class="btn btn-<?php echo $style; ?>">Read More</a> <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?> | Posted by <span class="<?php echo $style; ?> weight-normal"><?php the_author_link(); ?></span> </div> </div> <?php endwhile; ?> <div class="clearfix pagination bluegray"> <?php next_posts_link('Previous Page') ?> <span class="extralarge"><?php echo $paged; ?> of <?php echo total_pages(); ?></span> <?php previous_posts_link('Next Page') ?> </div> <?php /* Fixes for post offset */ $wp_query = null; $wp_query = $temp; remove_filter('post_limits', 'my_post_limit'); ?> </div> </div> <div id="right-col"> <?php get_sidebar(); ?> </div> </div></div> <?php get_footer(); ?>
am i not seeing something?
Forum: Fixing WordPress
In reply to: Front Page Showing Full PostsI”m gonna try..
-Jeremiah
https://www.zionfm.net
Christian Hit Music that Rocks!
Viewing 2 replies - 1 through 2 (of 2 total)