In this Problem Solving lab, your website is broken, as the first post in the loop is exhibiting unexpected behavior. You want to reposition the post info (i.e. date and author’s name) above the title. It works on all of the posts except the first one. Why? In this active, hands-on lab, you and I will walk through how to find the root cause, why it’s happening, and then how to resolve it.
In this episode, I explain why the previous solution is not as performant (as fast) as it could be. I show you why it’s not as fast. Then you will refactor the code to make it faster. You will see the results for yourself. Once you refactor, then bam, you completed this lab! WooHoo! Excellent
Now you understand the clues and what they are telling you. Let’s identify the root cause and discuss the why of it. Why are the callbacks out of order on the first post in the loop? In this episode, you should have a huge “Aha” moment where it just makes sense to you. Then you are going to resolve the root cause by changing the code. Woot! If you need to brush up on variable scoping, here is the link to the PHP Variables Bootcamp.
At this point, the clues are telling us about the anomaly. Do you see it? The data you see in your browser is clearly telling you “Hey Silly, the problem is right here.” Let’s see if you can figure out what the root cause is from the clues at this point in the lab. It’s time to analyze the clues. In order to understand what they are telling you, first, you need to visualize in your mind the order in which things are happening in the code, how PHP is executing, and when stuff is getting put into the Event […]
Now it’s time to stop and assess what our first tests told us. What clues did it provide? Let’s take a look at the data it reported in the WordPress event registry table. From this exercise, you will fine-tune the tests to get closer to finding the root cause. You will repeat the problem-solving steps.
In this episode, you and I will figure out what we want to test first. Then we’ll walk through and discuss what WordPress is telling us.
As the last episode was running long, I split it up into two videos to give your brain a rest. This is part 2 of evaluating the contributing factors. In this episode, we are narrowing in on what we want to test to prepare ourselves for the next episode and step.
The next step is to evaluate all of the contributing factors in order to determine where to start testing. Ok. It requires first that we figure out how the code is working, or how we think it’s working. In this episode, I’ll walk you through the process, explain the code, and give you a refresher on the event registry system that the WordPress Plugin API provides. Now if you haven’t already gone through the event registry videos, you need to do that now. Here are the links to get you up to speed. Please note: It is vital that you […]
The first step in my four-step problem-solving process is to identify the expected versus actual behavior. You simply write down everything that you see which is different from what is working versus what is not working, as well as what you expected to occur versus what actually occurred. It’s literally a process of pulling out your notebook and writing down the differences. Even the most minute detail needs to be recorded. Why? Because it may be a clue to help you find, understand, and resolve the true root cause. In this episode, you and I will walk through this process […]
Let me introduce you to the lab and what you will be doing. This lab starts with a broken website as some wonky, unexpected behavior is happening. You will be walking through the problem-solving process of how to identify the root cause, why it’s happening, and then how to resolve it…properly. In doing so, you will dive into the Genesis framework and WordPress’ Plugin API.