Quick hacks on WordPress
I made some quick and dirty hacks on WordPress that are useful for me:
- Fixed keyword meta-tag adding categories as keywords; no need to make a file, just added to header.php the following lines:
<?php $numcats = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories"); ?>
<meta name="keywords" content="<?php for ($i=1; $i< =$numcats;$i++) {print get_the_category_by_ID($i).',';}?>Swobodin,blog" /> - Added a plug-in that inserts images quickly: instead of writing a full HTML tag to insert the image, you have just to type
[INSIMG]yourpic.png[INSIMG]
The script will fix path (asssuming you put the image file in your upload directory) and dimensions; it still doesn’t handle “alt” and “title”, it doesn’t insert remote images as well.
Download it from here.

January 22nd, 2006 at 10:30 am
and let the papers fall into the trash can Then he pulled out the swiss casino himself His eyes slid over to Martys jacket in the motorcycle .