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
Creating a custom widget
Today let’s learn a simple quick trick on how to create a custom widget. For my example I will show...
Display custom url if comment authors url is blank
Here is a nifty trick for your comments.php template. If someone comes to your site and leaves a comment but...
Twitter avatars inside your WordPress comments
Ricardo Sousa, who writes for Smashing Magazine created a great plugin called Twittar. This plugin will use someones Twitter Gravatar...
powered by WassUp
Recent Posts: Fully Net Worth . com
Matt Higgins is a celebrated man, who came from the downsides of life to the upper echelons of the world. An investor, businessman, innovator, top executive, and business advisor. Although he had a hard early life at the beginning, he never let background shackles deter him as he steadily moved his way to success. He’s […]
Frank “The Irishman” Sheeran was an American labor union who helped facilitate organized crime activity into labor unions. He also claimed to have killed Teamster President Jimmy Hoffa. Frank Sheeran net worth before his death was estimated to be around $1 million. Sheeran was born on October 25, 1920, in Darby, Pennsylvania in an Irish […]
Turran Coleman, who is better known as Luh Kel, is an American singer and songwriter. He is best known for his hit single called “Wrong” which managed to peak at number 37 in the Billboard Hot R&B / Hip-Hop Songs chart and was certified Gold by RIAA in 2019. As of 2019, Luh Kel net […]