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
Notes from WordCamp San Fransisco
Over view notes of San Francisco WordCamp 2009 by [insert creator]??
Steve Souders, speeding up themes [notes]
Steve Souders, who currently works at Google is here to talk about speeding up your themes. Some overview notes WhySlow...
The state of the Press
I might like to start off by saying Happy Birthday WordPress. I don’t have any notes from Matt’s presentation, just...
Podcasting with Dave Moyer
Planning Who let you in? Format Daily Weekly Monthly Hour/half hour A show’s Outline – Intro -What is this thing?...
powered by WassUp
Recent Posts: Fully Net Worth . com
Jessica Eye Net Worth Jessica Eye is popularly known as an MMA fighter. She is a pound-for-pound fighter and has begun her professional career with a 15-7 win-loss record. Jessica was born in July of 1986 in Ohio. On December 7, 2012, Jessica won a significant bout with a technical submission win over Zoila Gurgel. […]
Amalaratna Zandile Dlamini, who is better known by her stage name as Doja Cat, is an American rapper, songwriter, and record producer. She is best known for her hit song called “Mooo!” which was released in 2018. Recently, she released her second album called Hot Pink. As of 2019, Doja Cat net worth is estimated […]
Passion Jonesz is an American YouTube star. She is best known for largely focusing on clothes and cosmetics-related content on her channel. As of 2019, Passion Jonesz net worth is estimated to be $400,000. Jonesz was born on March 12, 1992, in the United States. Very limited information is available on her including her early […]