WordPress.org

Ready to get started?Download WordPress

Forums

Create a blog 'archive' :S (2 posts)

  1. limeko
    Member
    Posted 3 years ago #

    Hi guys!

    I hope I can get this clear to you guys 'cause my own brain is getting overloaded right now :P

    I've create a wordpress website for the business and modified the theme (magazeen) quite a bit. You can check it out at http://www.amsterdam-magazine.com.

    So at the index page you'll see the latest articles (three of them), but now I want to make like an 'archive' page with ALL posts displayed chronincally - just like a normal blog index (because it's kinda missing it now).

    I was already playing around at the (not visible for public) /articles and it looks ok, but the 'previous entries' is not working. It must be some loop thingy - but I do not really understand php, sorry :(

    This is the code I have now:

    <?php
    /**
     * @package WordPress
     * @subpackage Magazeen_Theme
     */
    /*
    Template Name: Blogindex
    */
    ?>
    
    <?php get_header(); ?>
    
    	<div id="main-content" class="clearfix">
    
    		<div class="container">
    
    <div class="col-580 left">
    
    				<?php
    					query_posts( 'showposts=5' );
    					if (have_posts()) :
    						while (have_posts()) : the_post(); $category = get_the_category();
    
    				?>
    
    				<div <?php post_class( ); ?>>
    
    					<div class="page-content">
    
    					<div class="post-meta clearfix">
    
    							<h3 class="post-title left posttitle tk-fertigo-script"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    
    							<p class="post-info">
    							<span>Posted: <?php the_time( 'l F j, Y' ) ?></span>
    							<span>In: <?php the_category(', ') ?></span>
    						</p>
    
    							</p>
    							<div class="post-main-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=600&h=450&zc=1" alt="<?php the_title(); ?>" /></a>
    									</div>
    							<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_excerpt() ?><span class="readmorecat"> Read More &raquo;</span></a>
    
    						</div><!-- End post-meta -->
    
    						<div class="navigation clearfix">
    							<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    							<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    						</div>
    
    				</div></div><!-- End archive -->
    
    				<?php
    						endwhile;
    					endif;
    				?>
    
    			</div><!-- End col-580 (Left Column) -->
    
    				<div id="right-articles">
    			<?php if ( !function_exists('dynamic_sidebar')
    			|| !dynamic_sidebar('sidebar6') ) : ?>
    			<?php endif; ?></div>
    
    			</div>
    
    		</div><!-- End container -->
    
    	</div><!-- End main-content -->
    
    <?php get_footer(); ?>

    Can anybody explain me how to get this done?

    Any help is much appreciated!

  2. limeko
    Member
    Posted 3 years ago #

    Anyone? :(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.