Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 202 of 218)

Articles, tips, and resources for WordPress-based development.

WordPress For Christmas with WP Snippets

It’s a day after Thanksgiving so all of the Black Friday and Cyber Monday deals are going on – always fun to check out some of the neat deals online.

But since the end of Thanksgiving marks the beginning of the Christmas season, there are also some neat projects that others have been working on. Sure, it’s common to see WordPress themes, plugins, and other seasonal assets be released, but here’s a neat project that the guys over at Square One have been working on specifically for WordPress for Christmas.

Continue reading

How To Get Post Content By Title

I've updated some of the content in this post for more clarity thanks to Stephen's comment

When it comes to retrieving content outside of The Loop or retrieving content based on certain criteria, it’s usually a matter of setting up a custom query using WP_Query.

But sometimes, setting up a full custom query, executing the loop, then resetting the post data isn’t required.

Case in point: I was recently working on a project in which the client wanted a modal dialog to appear with the title and the text from a specific page. Easy enough: use get_page_by_title.

But there’s one minor gotcha that I’ve seen more than a few times when using this method. Here’s how to get post content by title and avoid the pitfalls of doing so.

Continue reading

On Offering WordPress Support and Documentation

WordPess Support

Ah, the stock photo of Tech Support for the entire Internet!

One of the challenges of providing solutions built on top of WordPress is handling expectations of support and documentation. I’m not talking about running a support forum or writing elaborate API documentation.

Instead, I’m talking about providing instructions for how users can manage their site, application, or plugin once you’ve completed work on the project.

Over the past couple of years, there have been a few things that I’ve tried. I’m definitely curious to hear you guys’ thoughts on what you’ve done and what you’ve found to be successful, but first, here’s how I’ve historically handled WordPress support after a project handoff.

Continue reading

My Preferred WordPress Hosting

Preferred WordPress Hosting

I’m a big fan of Site5

Earlier this week, I had a couple of people shoot me an email asking who I preferred in a WordPress host. The truth is, when it comes to preferred WordPress hosting, both developers and designers have their vendors of choice.

I’m no different.

As you can tell from the screenshot above, I’m personally a big fan of Site5. This is not a sponsored post – simply a reason as to why I prefer these guys.

Continue reading

Quick Tip: Including jQuery in WordPress The Right Way

Much has been said on the subject of properly registering and enqueueing scripts in WordPress, so I hate to write yet another “including jQuery in WordPress the right way” post, so I’ll attempt to cover it from a different angle.

Because jQuery ships with WordPress, it’s really just a simple matter of making sure you call:

wp_enqueue_script( 'jquery' );

In your functions.php file.

But that’s really only half of it. After that, you have a matter of actually setting up your JavaScript source.

Continue reading

« Older posts Newer posts »

© 2024 Tom McFarlin

Theme by Anders NorenUp ↑