Category: php

WordPress Functions and Versioning

By Lewis Wolfe, Wednesday, October 1st, 2008

Whether progress in WordPress development continues at the same pace or not, the issue of the capability of a theme to display all new functions, template tags etc, is a live one.

Referred to as compatibility, this perhaps isn’t quite accurate - a theme will (should) work with a range of WordPress versions, (for various reasons, good and bad, we don’t all heed the so-named ‘required’ updates) - however, the question is whether a theme will supply all the functionality of an installed version of WordPress.
Continue reading »

WordPress 2.7 Comments

By Lewis Wolfe, Tuesday, September 30th, 2008

It seems ‘official’ - poor honest WordPress Theme designers have a load more work in prospect to drag their themes into compatibility with the projected 2.7 version.

Where this all fits with the discussion about Intense Debate still isn’t elucidated - fair enough, this is a major issue and not going to be decided and promulgated in a week or so.
Continue reading »

WordPress Plugin PDF Conversion

By Lewis Wolfe, Friday, September 26th, 2008

Having tried out the most recent plugin I could find for getting a pdf from (just) a post, without bothering with categories - here - the results are mixed, to say the least, on PHP5, standard Red Hat etc. Continue reading »

Wordpress Plugin - WP MarkItUp

By Lewis Wolfe, Thursday, September 25th, 2008

WP MarkItUp is not bad at all… Runs on the standard MarkItUp code, driven by jQuery and is a WP plugin.

Tried it out by bodging in a Paypal “buy now” button to the editor, and it does ok, and would make putting in various extra functions of this sort a reasonably modular experience for the average programmer.

If you do know what you’re doing with javascript/AJAX, not sure it’s a necessary replacement, but it might provide a conduit for cleaning up the editor/quicktags functions, never-ending…

WordPress 2.6

By Lewis Wolfe, Monday, September 1st, 2008

To all kind enough to write - yes, I’m aware that WordPress version 2.6 - if not 2.5 as well - has managed to break a few of the (more minor) theme functions round here. I’m on the case, just as soon as time permits, to give everything a thorough overhaul and back in shape.
Continue reading »

wp_list_pages errors WordPress 2.5 and 2.6

By Lewis Wolfe, Thursday, July 31st, 2008

In the course of producing a theme that uses wp_list_pages for the standard menu, with a whole list of args, including exclude, as documented here, I find a series of non-standard behaviours - particularly when using a .mo file in the theme directory and in /wp-content/languages/

This is only with wp_list_pages for 2.5 upwards, WordPress 2.3 versions, not a problem, doing exactly what it’s supposed to…

The “official” radar seems to have no interest in the matter, so I was wondering whether any one could report their experiences…?

Habari PHP weblog software

By Lewis Wolfe, Sunday, May 11th, 2008

Having a lot of work stacked up and nothing fun to do, I decided to ignore the work and give Habari a test installation on a localhost, just play around with it for an hour or two and see what the deal was with the core code.

To be scrupulously fair, these vague observations are the product of an hour or so, and of course, not authoritative in that regard. Against this, I have no great love for the present direction of WordPress… 2.5 seems laudable in most ideas, but not quite the finished version at present - there is still the spectre of bloat here, and I don’t think viable competition would do WordPress any harm at all.
Continue reading »

BlogChemistry

By Lewis Wolfe, Saturday, May 3rd, 2008

Jesse Garner (known as Jennifer to his friends) is setting out on the long march towards PR6 with BlogChemistry, promising the standard formula of WordPress themes and general PHP programming know-how…

He would always be welcoming of your support and am happy to offer mine to a mate… and we did let him borrow the “true sliding-doors” trick for the horizontal tabs.

WordPress PHP - Post duplicates in 2 loops

A quick and simple way to knock out duplicates if you have 2 Loops on the page

The first loop will look something like this:-
Continue reading »

WordPress child page menu

By Lewis Wolfe, Thursday, February 21st, 2008

Here’s a nice and neat code snippet - making use of the template and conditional tags to output unordered list items for all child pages under the current page - with links - and just the thing to stick in a theme’s sidebar.

Best used in conjunction with is_page, of course, so…

<?php
if(is_page()){

$parent = ($post->post_parent == 0)? $post->ID : $post->post_parent;

wp_list_pages(’child_of=’.$parent.’&title_li=’);

}

?>