Many weblog sites these days have some form of an archive page. In WordPress it might be the built in auto generation of permalinks by:
But in some blog’s, for instance this one here (as I said in a previous post) you can’t get the post to paginate or link to
http://youblog.com/page/2 if you have nice permalinks active or
By any means, In this theme I have to have an archive link at the bottom. So..
Archive WordPress Plugins
There are many plugins which allows you to automatically create an archive page. The good thing is that you’ll (almost) have nothing to do, and the bad thing is that you may not be able to customize your archives much.
If you want to use a plugin, here is a small list:
And of coarse you can always..
..do it your self!
First you would have to create a template file by writing this:
<?php /* Template Name: Archive page */ //please add you necessary code here //ie. your hooks and html code ?> <ol id="archive"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array( 'showposts' => 100, 'offset' => 10, 'order' =>'DES', 'paged' => $paged, )); $wp_query->is_archive = true; $wp_query->is_home = false; if( have_posts() ) : while( have_posts() ) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><?php $tit = the_title('','',FALSE); echo substr($tit, 0, 25); ?>...</a> - Posted on <?php the_time('j F Y') ?> - Comments (<?php echo $post->comment_count ?>)</li> <?php endwhile; endif; ?> </ol> ?>
You may notice this code:
<?php $tit = the_title('','',FALSE); echo substr($tit, 0, 25); ?>from a previous post!
Once saved and pasted it to your
template-archives.php file, upload it on your
Then, in WordPress dashboard, create a new page, name it “Archives” (or whatever you want) and select Archive page as your page template.
Random Search Terms
WPLover: On Launching a WordPress theme
I just came across this article over at WPLover. Was very good, especially since I just released my first WordPress...
Maintenance release for Hybrid 0.5
Today has released an update to his Hybrid Theme. Version 0.5.1 can be found at the WordPress theme repository. Advertisements
Using the swekey on your blog
If you’ve downloaded the Swekey plugin and plan on using it for users to login here is what you might...
April’s new meetup location for LAWPUG
Anyone in the Los Angeles area? Well the first Sunday of the month is the LAWPUG, and since the weather...
powered by WassUp
Recent Posts: Fully Net Worth . com
Jade Cline is a TV personality who is best known for being a part of different MTV shows including “Teen Mom” and the “Young and Pregnant”. She replaced Jenelle Evans in the second half of Season 9 of Teen Mom 2. As of 2019, Jade Cline net worth is estimated to be $150,000. Jade was […]
Angie Varona Angie Varona is a model, social media influencer, and sex symbol. Who become famous online at the young age of 14 when someone hacked her Photobucket account where she had pictures of her in bra and panties that were taken for her boyfriend at the time. These pictures quickly went viral, causing Angie […]
Peter Morton is an American businessman best known as the co-founder of the Hard Rock Café and also a chain of dining restaurants. As of 2019, Peter Morton net worth is estimated to be $800 million. Peter was born on August 7, 1947, in Chicago, Illinois. He is the son of Arnie Morton, founder of […]