Plugins
How to: Creating an Archive page
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
Add the twittar plugin for WordPress w/ comment threading
I talked about the Twittar plugin in a previous post. But learned that the read me text file was only useful for installing the necessary php
code into WordPress themes that don’t have comment threading enabled.
Since most new themes past version 2.7, pull the comments section from functions.php
file, that is where you have to edit the avatars in order to show the twittar settings.
First open you functions.php
, and look for a line of code that says:
function custom_comment()
This is where your new comments are pulled from when you have the threaded comments enabled.
Now just find <?php echo get_avatar( $comment, $args['avatar_size'] ); ?>
& replace with <?php twittar(70, "", "", "avatar avatar-70 photo", 1, "R"); ?>
. Keep in mind that you will need to edit the Twittar setting to fit your site.
Plugins
Absolute Privacy: The Plugin that get’s it done
Hey everyone, I just wanted to write a little about a new plugin I came across today. It’s called Absolute Privacy.
This plugin can easily help your site filter out spammer subscribers, as well as help aid a more personal or family(private) oriented blog.
John Kolbert, the creator of this plugin has a nice video of how you might implement this plugin into your site, as well as how it works. For more info, head over to the download page!
Plugins
Plugin Review: WP Greet Box
Yesterday I found and downloaded the WP Greet Box plugin from Omni Noggin. This plugin could be a very useful tool and keeping visitors from various sites, asking them to subscribe to your RSS feed.
A great feature of this plugin is the ability to allow or disallow a user to remove the banner if they so choose to. Another great example is the different icons and text that show up from where the user come from. For example if this post was to get tweeted by yourself or any reader, and one of your followers clicked on the link, a Twitter icon and the associated text would show up on the post.
So far I am really liking this plugin! I have only had it one day, and haven’t played or tweaked with the options. But, you can add in your own icon’s and text from what ever referral site you like that may not be included in the plugin default. That’s cool!
I am going to have to give this plugin a rating of 5 stars. If you liked this post and you’ve download the plugin, please tweet it & head to WordPress.org and vote for this plugin.
-
Tips & Tricks4 months ago
WordPress Security Hacks
-
Pages4 months ago
Write For Us – Guest Post
-
Tips & Tricks3 months ago
How to: show/hide a widget in WordPress with jQuery
-
Plugins2 months ago
Top Membership plugins
-
Tips & Tricks1 month ago
Limit the characters that display on the_title
-
Tips & Tricks5 months ago
Remove spaces when echoing the_title
-
News3 weeks ago
How to: Show/Hide any div box with jQuery in WordPress
-
Tips & Tricks2 days ago
Remove the title attribute using jQuery
arcade games
March 11, 2009 at 3:07 pm
thanks for this information.
I think there is a plugin for this job