Note: the following example is wrong*. Do not do it! I often see code like the following: I want to explain the proper way of manually running shortcodes using PHP. *Ok, it’s not strictly wrong, it’s just not the best solution all the time.
These posts are meant to be quick ideas that I may want to explore later, whether as a blog post or a project.
There are a lot of libraries out there for generating HTML forms using PHP. So far, however, I haven’t found one that meets both of these things: Simple, OOP usage. Flexible enough rendering that I can use it anywhere, but especially within a WordPress plugin. A bonus option would be a library that can be [more…]
I think it would be a neat idea to utilize a plugin and the GitHub API to synchronize a GitHub repo with WordPress. Posts in WordPress (or a CPT) would correlate to files in the GitHub repo. Saving in the WP editor would trigger a commit in GitHub using the API. Similarly, changes made to [more…]