Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
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 [...]
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′ [...]
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.
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) );