Okay so I am a retard and instead of having onload=”liveSearchInit()” in the body tag I had onload=”liveSearchInit” … *smacks self* … so yeah, now everything works and is all spiffy :-) Now I need a new theme!
Monthly Archive for July, 2005
Page 4 of 7
This is a write up on how I got asides working on WordPress 1.5 using 2 different loops. It only took me about 20 minutes to setup thanks to an error on my part which cost me an extra 10 minutes. In other words, this is really easy and only takes a few minutes.
The first thing you need to do is create a category for these posts, I named mine ‘asides’ but you can use whatever name you want. Note the category ID number for this category.
You will most likely want to exclude this category from the posts on your front page, this is done very easily and explained on the WordPress Codex. In your index.php page within your theme directory you will want to add lines 3 and 5. Every WordPress theme should have the rest of the lines and you can ignore everything else in between them, that should just be the code to display each post. You will need to replace 25 with the ID number for the category you created.
The only thing left to do is add your new loop somewhere in your page to display the asides. I chose to add these in my sidebar and I used to following code.
The important lines of code here are 3,4,5, 11, and 12. Line 3 resets the loop so you can actually have a second one. It also tells the query to only pull from category 25(replace with your category ID) and to only pull the first 6, which you can also customize to your liking. Lines 4 and 5 start the new loop just like on your frontpage. Everything in between is where you would style your aside and use the template tags. Lines 11 and 12 close the loop and from there you can add whatever code you want, for example I added a link to the archives and rss feeds for asides.
Here is the CSS I used to style my asides, feel free to snag it if you like …
I have implemented asides finally, it was surprisingly easy too! Perhaps a write up is in order soon.
(0)Thanks to binarybonsai.com I was informed about the new plugin Extended Live Archives. This plugin is an addon to the Super Archives plugin, also known as Live Archives, which adds category support into the archive browser.
I found out about this a few days ago and have been messing around with it in an effort to customize it to my liking. I finally came up with something decent and finished it up today. Here is the CSS I used for this plugin.
I am not able to test this on any browsers other than Firefox and Safari so if you notice anything wrong please let me know.
I was checking out my stats today and in addition to finding out my keynote review was posted on a number of mac news/opinion sites, I checked my Country Visit statistics and was shocked to find all the different countries I am getting hits from. Here is a list of the countries and the number of hits I get from each one … if you read this site on any regular kind of basis, leave a comment and let me know what part of the globe you are from :-)
UNITED STATES (US) 21173 SERBIA AND MONTENEGRO (CS) 2898 NETHERLANDS (NL) 2103 FRANCE (FR) 1224 LITHUANIA (LT) 1001 CANADA (CA) 901 CHINA (CN) 878 BELGIUM (BE) 770 THAILAND (TH) 652 AUSTRALIA (AU) 574 JAPAN (JP) 536 Indeterminable 452 GERMANY (DE) 303 BRAZIL (BR) 286 COLOMBIA (CO) 259 SAUDI ARABIA (SA) 218 TAIWAN (TW) 204 PORTUGAL (PT) 176 INDIA (IN) 176 AFGHANISTAN (AF) 165 UNITED KINGDOM (UK) 142 TURKEY (TR) 130 MEXICO (MX) 125 ITALY (IT) 113 NEW ZEALAND (NZ) 112 PHILIPPINES (PH) 99 EUROPEAN UNION (EU) 81 LEBANON (LB) 76 ROMANIA (RO) 76 KUWAIT (KW) 69 CYPRUS (CY) 63 SPAIN (ES) 59 MALAYSIA (MY) 55 ISRAEL (IL) 55 ALGERIA (DZ) 53 VENEZUELA (VE) 51