WordPress theme authors spend a lot of time practicing to make sure their theme demos go smoothly so that they can acquire new users and customers. However, this can lead to frustration when customers install the theme and find out the that it is actually quite challenging to replicate the demo. This has been a pain point for me personally. But I realize I’m not great at website design, where as theme developers are, especially with their own themes. I recently spoke with Primož Cigler, the founder of Proteus Themes and the co-author of the plugin One Click Demo Import (OCDI). The […]
Want to Learn JavaScript Deeply? Choose the Right Framework for You
Last year, Matt Mullenweg encouraged developers to “Learn JavaScript deeply.” He said, and I agree that future of WordPress will use JavaScript-driven interfaces powered by the WordPress REST API. Using JavaScript in conjunction with the REST API makes for a great experience for both the developer and end user, which is why every WordPress developer should have some understanding of JavaScript. For this vision to be a reality, that can’t just apply to WordPress core. Plugins and themes will need to deliver a similar experience. A great JavaScript framework is the fastest and most scalable way to deliver that in […]
Using WordPress As The CMS For Laravel Apps
Many developers today are buzzing about how they use the WordPress REST API in conjunction with a JavaScript framework. While that process does work well, I’ve been exploring how to correlate the REST API to a PHP MVC framework, specifically Laravel. In this article, I will highlight a few different ways to integrate the WordPress REST API into Laravel. I recently built a web application to serve helpful tips and links into my WordPress plugin Caldera Forms. Most of the content it sends exists in WordPress so I thought about creating a plugin that would run on the Caldera Forms […]
Using The WordPress REST API Without An Extra HTTP Request
The WordPress REST API is a really awesome way to get WordPress content in the JSON format so you can use it in a JavaScript-driven interface. Normally, this means that your page loads without any content included and then you make an AJAX request to the server for the content as JSON, and render it on the page. For a first page request, that is one extra request. As long as you’re on the server, why not get the content, as JSON, included in the response to the first request. In this post, I will discuss using the REST API’s […]
Overcoming Challenges Adding The WordPress REST API To A Legacy Project
It’s no secret that I am a fan of the WordPress REST API. I use it all the time on new projects, but adding REST API support to my main project — Caldera Forms — has been difficult. Modern WordPress development requires writing PHP code that allows for the same actions to be performed in response to a traditional admin/ front-end HTTP request, a REST API request or WP-CLI request, using the same internal PHP API. In the past, I don’t think following this philosophy mattered much. Settings were changed on admin pages and content was displayed on the front-end. […]
The New Plugin Repository: Just A Beginning
Last week the long-awaited WordPress.org plugin directory was rolled out. While this re-design has been in an open beta for months. Many users and developers felt taken off guard by the launch, which happened without warning. In a comment on the announcement post, Kevin Hoffman summed up much of the community’s frustration about what was supposed to be a user data and feedback driven re-design he said, “In many of the discussions leading up to launch, user data and feedback were promised to be the decision-makers, although it did not exist at the time. Much of the early feedback (regarding […]
Approaches To Using CDNs For Performance Optimization On WordPress Sites
Performance optimization isn’t easy. There are a lot of possibilities out there and each one needs to be tested before deciding which is best. For example, while working on one of the two sites I discuss in this article, I tried out Redis as an object cache. Typically this is a good option, but it slowed down some of my pages, caused problems in others, and exhausted the memory. In this article, I want to discuss WordPress performance optimization, mainly in terms of CDN based on some recent experience of mine. This isn’t a definitive guide to optimization or a […]
Why WordPress Is Excited About the WP-CLI
The WordPress REST API gets lots of attention, but for many of the same reasons, the WordPress command line interface — WP-CLI — is also worthy of this type of excitement. A REST API and a CLI are essential to modernizing WordPress. Like the REST API, WP-CLI is an alternative way of manipulating data on a WordPress site. Using simple commands you can change a user’s password, bulk import posts, activate a theme, and so much more. The WP-CLI is a community project that is led by Daniel Bachhuber. It was recently announced that the project would become an official […]
Getting The Most Out of a Freemium WordPress Business Model
Two years ago, I started a WordPress plugin company. I thought if we made cool stuff people would like it, and therefore buy them and we’d have a bunch of money. I was a bit naive, to say the least. This was my first time selling anything online besides my development services. However, our first month only brought in about $350, which was not exactly what I was expecting. It shouldn’t have shocked me because I wasn’t focusing on what problem my plugin could solve for people. I also didn’t know that Caldera Forms, not our Pods add-on would become our […]
Using The VueJS Router With The WordPress REST API
In my last two articles, I covered the basics of the JavaScript framework VueJS and how to use it with the WordPress REST API. I discussed using the basics of VueJS and templating, as well as how to use components to make sections of the app reusable and modular. In this post, I will show you how to use the vue-router to move between states that use these components. VueJS is not strongly tied to the official router, and the official documentation even provides alternatives to it. That said, the vue-router, is very simple and clean, so let’s build a […]
No Comments