codydalton
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Sidebar goes crazy on Archive PageI think I fixed it!!!!!
Forum: Themes and Templates
In reply to: Sidebar goes crazy on Archive Pagenow I am getting some really crazy stuff after 3 post on a archive page. Any Help?
<?php /** * @package WordPress * @subpackage Magazeen_Theme */ get_header(); ?> <div id="main-content" class="clearfix"> <div class="container"> <div class="col-580 left"> <?php if (have_posts()) : ?> <div <?php post_class(); ?>> <div class="post-meta clearfix"> <h3 class="post-title"> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <?php single_cat_title(); ?> <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> Posts Tagged ‘<?php single_tag_title(); ?>’ <?php /* If this is a daily archive */ } elseif (is_day()) { ?> Archive for <?php the_time('F jS, Y'); ?> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> Archive for <?php the_time('F, Y'); ?> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> Archive for <?php the_time('Y'); ?> <?php /* If this is an author archive */ } elseif (is_author()) { ?> Author Archive <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> Blog Archives <?php } ?> </h3> <p class="post-info right"> <?php bloginfo( 'name' ); ?> Archives </p> </div><!-- End post-meta --> <?php while (have_posts()) : the_post(); ?> <div <?php post_class( ); ?>> <div class="post-meta clearfix"> <h3 class="post-title-small left"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <p class="post-info right"> <span>By <?php the_author_posts_link(); ?></span> <?php the_time( 'l F j, Y' ) ?> </p> </div><!-- End post-meta --> <div class="post-box"> <div class="post-content"> <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?> <div class="post-image"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=620&h=350&zc=1" alt="<?php the_title(); ?>" /></a> </div> <?php endif; ?> <div class="post-intro"> <?php the_content( '' ); ?> </div><!-- End post-intro --> </div><!-- End post-content --> <div class="post-footer clearfix"> <div class="continue-reading"> <a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>" rel="bookmark" title="Continue Reading <?php the_title_attribute(); ?>">Continue Reading</a> </div> <div class="category-menu"> <div class="category clearfix"> <div><a href="#"><span class="indicator"></span> <?php echo $category[0]->cat_name; ?></a></div> </div> <div class="dropdown"> <ul class="cat-posts"> <?php $posted = get_posts( "category=" . $category[0]->cat_ID ); if( $posted ) : foreach( $posted as $post ) : setup_postdata( $posted ); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a><span><?php the_time( ' F j, Y' ) ?></span></li> <?php endforeach; endif; ?> <li class="view-more"><a href="<?php echo get_category_link( $category[0]->cat_ID ); ?>" class="view-more">View More »</a></li> </ul> </div><!-- End dropdown --> </div><!-- End category --> </div><!-- End post-footer --> </div><!-- End post-box --> </div><!-- End post --> </div><!-- End archive --> <?php endwhile; ?> <div class="navigation clearfix"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> <?php else : ?> <?php endif; ?> </div><!-- End col-580 (Left Column) --> <div class="col-340 right"> <ul id="sidebar"> <?php get_sidebar(); ?> </ul><!-- End sidebar --> </div><!-- End col-340 (Right Column) --> </div><!-- End container --> </div><!-- End main-content --> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: Sidebar goes crazy on Archive PageI just moved the sidebar up but it still slides out to the right.
I moved
<div class="navigation clearfix"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div>Between
<?php else : ?> <?php endif; ?>Forum: Themes and Templates
In reply to: Sidebar goes crazy on Archive PageI tried closing one of the div’s and it did work for the pages with 2 post but for the ones with only 1 post it did not close the main content div.
Could it be something wrong when there are 2 posts?
Forum: Fixing WordPress
In reply to: How to Exclude Posts While Using Showposts offsetHi Otto42, I am using the same theme but I am wanting to take out the showpost 4 & offset 2. For some reason when I remove this code it causes the site to do some funky stuff. I just want my post to look like my first post. My site is http://www.feltandfitted.com
Here is the php code
Cinemadiving, nice work at using the theme. What tag widget are you using. that is pretty sweet!