Tag / Envato

/ April 25, 2016 / Comments Off on Displaying The Most Recent WordPress Query

Displaying The Most Recent WordPress Query

Looking the most recent WordPress query that is run on a given page can be useful for several reasons:

– you see how the information in the database is retrieved,
– you learn how the underlying query system works,
– you’re able to benchmark your custom queries,
– and more.

In a recent article for Envato, I share a 60-second video on how you can quickly take a look at the last query executed on a given page.

Read More

/ April 6, 2016 / Comments Off on How to Work with WordPress Metadata

How to Work with WordPress Metadata

One of the nicest APIs that the application offers is the WordPress Metadata API. It’s through this API that we’re able to take ideas such as posts, users, comments, terms, and more and store richer information that just the standard set of information.

Sure, there’s a lot to consider when taking advantages of these additional columns or fields as it relates to these concepts. But if you’re a beginner or someone who’s just starting to get deeper into the WordPress API, then I can’t recommend learning these APIs enough.

In two recent series for Envato, I cover these concepts in-depth.

Read More

/ March 30, 2016 / Comments Off on Getting Started with Learning WordPress

Getting Started with Learning WordPress

Learning WordPress is one of those things that many of us are doing almost every single day. However, once we reach a certain point, I think we stop thinking of it as “learning WordPress” and we start thinking of it as “how to do [any given task] with WordPress.”

When it comes to helping other people with WordPress, it’s easy to forget what it’s like to be at the beginning stages and getting acquainted with all of the nuances required to get things set up on our computer and how it relates to releasing projects on the web.

To that end, I just wrapped up a series for Envato geared specifically towards beginners who want to get started with WordPress but aren’t sure where to start.

Read More

/ March 16, 2016 / Comments Off on Debug WordPress Projects

Debug WordPress Projects

I’m of the opinion that being able to debug code is one of the must-have skills of any professional developer so it stands to reason that I think if you’re working with WordPress in a professional capacity, you should be able to debug WordPress projects.

It doesn’t matter if you’re working on the server-side or the client-side; if you’re writing code, then you need to be able to:

– set breakpoints,
– watch variables,
– step into functions,
– step out of functions,
– step over functions,
– change values,
– …and so on.

Though debuggers are common place in practically every programming environment, I recently wrote a short tutorial and filmed a short video for Envato that walks users through how to debug WordPress projects.

Read More

/ March 7, 2016 / Comments Off on Deregistering WordPress Stylesheets

Deregistering WordPress Stylesheets

Deregistering WordPress stylesheets is one of those things that we don’t always have to consider.

If you’re starting a project from scratch, then it’s usually safe to say that you’re starting a project at ground zero and have control over most of the assets that are to be enqueued in the project.

On the other hand, if you’re coming into a project at a later date or you’re working on a plugin that has to work in conjunction with another plugin that might use a shared stylesheet then you may need to deregister an existing asset to make sure everything works well together.

Read More