So this version is really getting close to having everything locked down and working. Almost all the bugs and kinks should be worked out and multiple images should completely work. All the default templates work with LightBox and if your lightbox stops working try loading the new default template code. You should download the pre release, version 1.1.9, and test it out as best you can, then let me know what you find.
Of great importance, the category filters should now work with pre existing and new categories. When you set a category in the CataBlog ShortCode, no longer is that text used directly in the search. The post query now uses the category slug, which is derived from the category name. It is important to differentiate between the category name and slug, the slug must be unique across all taxonomies and could include other characters. In previous versions of CataBlog it was possible to confuse yourself by setting a category filter and having it not work. This is because the category slug is probably different from the category name, thus the query is for a non-existant or wrong category, causing weird results. Now any newly created categories will be checked and guaranteed unique so this shouldn't be a problem anymore.
The LightBox JavaScript code also got a nice upgrade, and works well with multiple image and single image catalog items seamlessly. For the new functionality I decided to change the selector for the LightBoxed images. Before it used a class called .catablog-clickable
, I decided to change that to .catablog-image
. I am considering making the LightBox more SEO friendly and forcing people to wrap the thumbnail image in an <a />
tag that points to the full size image. If anyone has an opinion please let me know.
Well, enough Saturday night rambling. 🙂
- Zach