Connect with us

Plugins

How to: Creating an Archive page

Published

on

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: /Month/ and /date/.

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 http://youblog.com/?paged=2.

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.

On this blog I have decided to use Clean Archives Reloaded by Viper007Bond. Which you can now see active in my Archive’s page.

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 archives.php or template-archives.php file, upload it on your wp-content/themes/yourtheme/ directory.

Then, in WordPress dashboard, create a new page, name it “Archives” (or whatever you want) and select Archive page as your page template.

enjoy!

Plugins

WordPress Audio Player Plugin

Published

on

I recently went looking for a good audio player for WordPress. I came across WPAudioPlayer from 1 pixel out.

The plugin is extremely simple to use and has a really awesome automatic color detention tool which will match to your site with ease. For more info visit the demo page at http://www.1pixelout.net/code/audio-player-wordpress-plugin/

Continue Reading

News

cforms II now GPL compliant

Published

on

Well, it was a long run, ok, only 24 hours when Mr. Seidel’s announced that he would pull the plug on further updates to the cforms plugin.

But after consideration and many emails, he has released a update to a GPL compliant version of his plugin: 10.2.

Continue Reading

Plugins

Search Unleased: A custom WordPress plugin

Published

on

Most all WordPress theme’s use a a simple search form to search your site. But what it you wanted to search your whole site and not just your posts.

Search Unleashed comes into the picture. Search Unleashed performs searches across all data, including that added by plugins.

Some features of this plugin are:

  • Full text search with wildcards and logical operations
  • Search posts, pages, comments, titles, URLs, tags, and meta-data (all configurable)
  • Search data after it has been processed by plugins, not before
  • Search highlighting of all searches, including titles and comments
  • Search highlighting of incoming searches from Google, Yahoo, MSN, Altavista, Baidu, and Sogou
  • Search results show contextual search information, not just a post excerpt
  • Record search phrases and display in a log
  • Exclude specific posts and pages from results
  • Compatible with WP-Cache
  • Supports WordPress 2.0.5 through to 2.7
  • No changes required to your theme
Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

Cuban Doll Net Worth: 5 Interesting Facts You Should Know

Cuban Doll Net Worth: 5 Interesting Facts You Should Know

There are so many people around the world, who came to fame after being active on social media. Aaliyah Keef, who is best known as Cuban Doll too came out being popular from Instagram. She usually shares a professional lifestyle in her pictures. Here are some amazing facts about Cuban doll including her net worth, […]

Lil Uzi Vert Net Worth

Lil Uzi Vert Net Worth

Lil Uzi Vert Net Worth. Music is growing at a very rapid growth, such was for famous American rapper and songwriter, popularly known as Vert, but later changed to Lil Uzi Vert because fans described his rap flow very fast. His real name is Symere Woods, born on July 31st, 1994 in Philadelphia, Francisville. He […]

Justin Rose Net Worth

Justin Rose Net Worth

Who is Justin Rose? Justin Rose is an English golfer who plays mostly on the PGA Tour. Justin is known for winning the gold at men’s individual tournament and also being the runner up twice at the Masters’ Tournament in 2015 and 2017. Justin’ Early Life Justin was born on July 30, 1980, in Johannesburg, […]

Bad Bunny Net Worth: 5 Important Facts About Him

Bad Bunny Net Worth: 5 Important Facts About Him

Bad Bunny Net Worth: Benito Antonio Martinez Ocasio, known popularly by his stage name Bad Bunny, is a Latin trap singer/rapper, Songwriter from Puerto Rico. Born March 10th 1994, Which makes him a Pisces, he is known for his popular songs like Soy Peor. I Like It, Mia, and many others. Here are six facts […]

Trending