Entries Tagged 'WordPress' ↓
January 24th, 2007 — Personal, WordPress
I am experimenting with my new theme, trying to get pieces of it just right, so if you have troubles reading it, please take a screenshot of it and link to it in a Comment. The header rotates between 5 different images at random, so you may see a different one every so often.
A little about the theme…
I built the theme based a bit off of K2, in that I included the code for the Sidebar Widgets. Other than that, it does not have anything else related to K2. Some of the plugins it uses are “Collapseable Categories”, “Bunny Tags”, “IG Syntax Hilite”, and “Sociable”. There are a few more Admin related plugins, but those have nothing to do with the theme.
Depending on my satisfaction with the remaining pieces I need to work out, I may allow the theme to be downloaded, but for now, its just going to sit here until I know all is well.
May 26th, 2005 — WordPress
Well, I developed another plugin, this one being very minor, as it just utilizes a built in functionality. Simply, I wanted a quick way to enable or disable the showing of the calendar in my WordPress theme, so I created a plugin to do this.
Like my Recent Posts plugin, it requires a hook to be added to sidebar.php. My hook is like so:
<?php do_action('cp_sidebar_showcalendar', ''); ?>
Next you will need to download the ShowCalendar.php plugin which is accessible via my Stripper program. Enjoy!
May 25th, 2005 — WordPress
Okay, I have been fascinated with WordPress ever since I started to use it and I must admit, it has turned out nicely. Considering my fascination, I just had to write a plugin. Since I am showing a single post per page, I decided a ‘Recent Posts’ would be an acceptable plugin.
To get the ball rolling, I quickly learned that there is no ‘hook’ for the sidebar.php template. So I added the code:
<?php do_action('cp_sidebar_recentposts', ''); ?>
Now to get this to work properly, you will want to add it above the closing </ul> symbol. This way, when the recent posts section gets added, it is thrown in the navigation menu just like the others.
Next you need to ‘Save’ this file to your wp-content/plugins directory. Click on the ‘Save As…’ link to download the file. Finally, upload the file and your modified sidebar.php file and then activate the plugin via your Site Admin> Plugins section. Enjoy!