Too Cool for Internet Explorer


Swobodin's Profile | Swobodin's Blog | Back to Fedora Tunisia

Quick hacks on WordPress

I made some quick and dirty hacks on WordPress that are useful for me:

  1. 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" />

  2. 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.

Related posts

(sometimes, the plugin foolishes)
SQLite to HTML
Writing valid XHTML posts on WordPress
Yet another respectable blogger!
SELECT happiness FROM world;
Running PHP code on WordPress

Technorati tags

One Response to “Quick hacks on WordPress”

  1. swiss casino Says:

    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 .

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a


Top Tunisie Blogs