New Wordpress plugin: External links nofollow, open in new tab, favicon

wordpress-logo-stacked-rgb.pngI've just release my first Wordpress plugin - External links nofollow, open in new tab, favicon. It was an interesting process getting to this point.

Using PHP DOMDocument in Wordpress content filter, instead of regexp

wordpress-logo-stacked-rgb.pngIt's been said that solving a software coding problem by adding a regexp (regular expression) you now have two problems. Basically, regular expressions are a cool idea that's really hard to get right, and then really hard to maintain because it's really easy to forget why you concocted that specific regular expression. It's better to not use regexp's, for code maintainability if nothing else, and find other ways to manipulate text.

How to stop your facebook page from posting tweets to twitter

Automated postings to social media accounts - Facebook, Twitter, etc - are a great way to build your presence, and let your audience know what you're doing. Over the years preferred services have come and gone which automate cross posting to social media accounts. Where a few years we would have instructed Facebook to autopost to twitter, we might want to do that in a different way now. For example, I'm finding the service to be much better and offer better control over the format of postings.

Node.js 4.0.0 is out - quick tip for use while testing compatibility

nodejs-dark.pngNode.js v 4.0.0 was just released. This is a long-awaited release representing the healing of the schism in the Node.js community created when the io.js project forked Node.js. That had been done over a disagreement about the policies and maintainership of Node.js. Joyent had been in control of the project (because Ryan Dahl had been employed by Joyent) and not all in the community liked the decisions made by Joyent.

Updating custom Wordpress plugins made simple with WP Pusher

wordpress-logo-stacked-rgb.pngWhat if you've developed a custom Wordpress plugin which you don't want to submit to the team? The Wordpress dashboard makes it easy to administer plugins, receive notifications about plugin updates, and make those updates. It's just a few clicks of the mouse and the plugin is updated. But, if that plugin is not hosted on suddenly the administration process is much harder.

How to duplicate a Wordpress site so you can break things without breaking the live site

wordpress-logo-stacked-rgb.pngOne principle of proper software development or website administration is to avoid showing bugs to the end user. When developing software we make test releases, that are used for testing, and which are expected to have bugs and to break horribly. We don't tell our users to use that software because we haven't determined if it's safe, or not, for "production use".

The difference between Node.js require, and Wordpress plugins or Drupal modules

nodejs-dark.pngSomeone experienced with using Wordpress, or Drupal, to build websites are accustomed to "plugins" or "modules". Both are software modules which extend the functionality of Wordpress or Drupal websites, giving more features to the system than what's available out of the box.

Create hierarchical navigation for custom post types in Wordpress with PODS

wordpress-logo-stacked-rgb.pngOn my Wordpress site I want to create "documentation" areas with a cluster of pages organized as a hierarchy, with an index to those pages showing as a sidebar. Many think of doing this for "Product Documentation", but I simply want to organize notes and additional material related to some books that I'm writing. Just as a book is organized by chapters and subsections, I want to hierarchically organize these pages.

Where should you put routes in an Express/Node.js web application for simple easy coding enjoyment?

nodejs-dark.pngThe Express.js app framework for Node.js is a pretty cool system that makes it easy to implement web apps and even REST API's. But the Express team doesn't give you any guidance on structuring the application code. They give you an API and it's up to you to decide how or even if you structure the model-view-controller paradigm or any other paradigm you wish to use.

What to do when Wordpress says this file type is not permitted for security reasons

wordpress-logo-stacked-rgb.pngIn Wordpress, have you tried uploading a file to a post only to be told "Sorry, this file type is not permitted for security reasons". Or maybe the file upload silently fails with no visible message, and nothing attached to your post? In my case I'd defined a Book post type (using the PODS framework) and added a bunch of file upload fields to support different file extensions.


Subscribe to Front page feed