1

Hello world!

December 21, 2011

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

  • 0

    Grub Rescue> Prompt [Solved]

    November 2, 2011

    When trying to boot a friend’s notebook that had had a faulty install on it, all I could get was a Grub Rescue> prompt which takes very few commands. Here’s the recipe I followed to get the notebook to boot into something useful. Grub is throwing a wobbly because it can’t find your boot files [...]

  • 0

    Change Number Of Posts Per Page on Category Pages

    October 4, 2011

    After fiddling around with wp-pagenavi.php for too long realised that there was a DB variable bossing it all. That DB variable is: in wp_options -> option_name = posts_per_page; in my case that had a primary key of 22, so to change number of pages to 12 instead of 10: UPDATE `myDB`.`wp_options` SET `option_value` = ’12′ [...]

  • 0

    Alternate Styling for Elements in PHP Loop

    June 22, 2011

    Handy wee bit of code for alternating the style on an element – for example to have different coloured rows in a table of for fitting box elements into a 2 column layout with a simple float left and putting a space between them by applying a margin-left style to alternate ones.

  • 0

    Exclude Categories from Slideshow

    June 7, 2011

    In home.php $q = new WP_Query( apply_filters(‘arras_slideshow_query’ ,$query) ); replace with $q = new WP_Query( apply_filters(‘arras_slideshow_query’,'cat=-4′ ,$query) ); Where 4 is the id of the category you want to exclude, if you have multiple categories you want to exclude, say 4, 5 and 6 then: $q = new WP_Query( apply_filters(‘arras_slideshow_query’,'cat=-4,-5,-6′ ,$query) );