Category: Plugins

Document Feedback for WordPress

Most large knowledge databases online provide a large amount of articles ending with a small text block: “Was this resource helpful?”, which is pretty handy for site owners to decide on most and least valuable posts. Since WordPress is a CMS heavily focused on blogging and content creation, the new Document Feedback plugin is the…

Continue reading

Including scripts and styles properly

Since this has been a discussed topic over support forums and IRC this week, a very quick scripts and style guide for WordPress. The function for including a stylesheet is wp_enqueue_style: [php]wp_enqueue_style( $handle, $src, $deps, $ver, $media );[/php] You can define the handle for the style (as a reference for other styles later), the location,…

Continue reading

Overcome the WordPress Autosave Limitations

WordPress includes a handy feature called ‘autosave’ that periodically persists an autosave version of a post at the moment of writing. Since accidents happen, it’s always good to have some recent version of a long text instead of starting from scratch when you don’t have the proper backup. Autosave is handy, but since WordPress is…

Continue reading

DX Plugin Base v.1.1 released

I’ve released a major update of my DX Plugin Base plugin which servers as a skeleton for WordPress plugin creation. Some of the old code has been refactored and simplified and a few new features have been added as well. Currently the list of code snippets working and included in the sample plugin base is:…

Continue reading

swpMVC – WordPress Rails-alike framework

Just noticed on Twitter this one: [blackbirdpie url=”https://twitter.com/dimensionmedia/statuses/239848270657118208″] I’m very fond of more abstract development practices and a good MVC modeling with ActiveRecord has always been a pleasure to see. Since WP itself has too much procedural programming with global variables, this one as a concept looks very neat. I don’t believe it would have…

Continue reading

Plugin Base Skeleton

I got tired working on plugins and writing the same code snippets all over again, looking in the same old tutorial sites or my favorite WP 3 Plugin Dev book. So I released a startup script for plugins – http://wordpress.org/extend/plugins/dx-plugin-base/ . It contains most of the important snippets required for every plugin – registration of custom post…

Continue reading