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
January 28th declared plugin developer day
Today Matt Mullenweg from MA.TT declared today official plugin developer day because the plugin directory hit 4,000 plugins, check it...
WPRecipes: Get parent page/post title
If you use pages and subpages or posts and parent posts on your WordPress blog, it should be a good...
Revolution Two: TV Theme
Benefits include the TV theme, unlimited theme support answered by our experts, customization techniques with our detailed theme tutorials and...
WordPress Audio Player Plugin
I recently went looking for a good audio player for WordPress. I came across WPAudioPlayer from 1 pixel out. The...
powered by WassUp
Recent Posts: Fully Net Worth . com
1TakeJay is an American rapper who is from Compton, California. Some of his popular songs include “I Like Bi!tches”, “Arco”, and “I Know”. As of 2019, 1TakeJay net worth is estimated to be $300,000. His mother was a fan of the rap genre and as a result, from a very young age, Jay was exposed […]
Matt Farah is an American YouTube personality and businessman. He is known for reviewing famous cars on his YouTube channel. As of 2019, Matt Farah net worth is estimated to be $1.5 million. Matt was born on December 1, 1981, in New York City. He attended the University of Pennsylvania where he studied Bachelors of […]
David Bellamy was an English author, broadcaster, botanist, and environmental campaigner. David Bellamy net worth at the time of his death is estimated to be $5 million. Bellamy was born on January 18, 1933, in London to parents Thomas Bellamy and Winifred May Bellamy. As a child, he wanted to become a ballet dancer, but […]