Quantcast
Channel: WordPress – ScottNellé.com
Browsing all 15 articles
Browse latest View live

Prevent WordPress from guessing if users hit a 404 error

WordPress has a feature called Canonical Redirects which attempts to make sure that users always end up on the one true URL for a given request. That’s great for SEO. Built in to this feature, however,...

View Article


Clean up a bloated wp_term_relationships table

Sometimes the wp_term_relationships table becomes bloated with many orphaned relationships. This happens particularly often if you’re using your site not as a blog but as some other type of content...

View Article


Determine if a WordPress post or page has children

Here’s a simple function to determine if a post, page, or custom post has children in WordPress. It works by getting the children of the current post and returning a count. It will return 0 (false) if...

View Article

Remove a specific TinyMCE item from the WordPress editor

When filtering a row of TinyMCE buttons, here’s a way to remove a specific button by name. This is useful for cases where you’re editing the default editor instead of declaring your own editor. In this...

View Article

SSL error when upgrading a WordPress Multisite Network

When updating to WordPress 4.0, I recently saw a scary-looking error when running the database upgrade on a network with some SSL sites. It triggered when trying to update tables for a site with an SSL...

View Article


Debug WP-Cron with Trigger Scheduled Events

I’ve added a new plugin to the directory called Trigger Scheduled Events, which does pretty much what it says on the tin. With it, you can view a list of all events scheduled by WP-Cron and run any of...

View Article

Clean up a bloated WordPress comment tables

Spam comments are the worst. Even with Akismet active to prevent them from appearing on your site, they can still cause problems. That’s because the comment still gets stored and Akismet creates...

View Article

WordPress Plugin: Override Comment Deadline

Today I’m pleased to release a discussion-focused plugin to the directory, called Override Comment Deadline. Now you can have “Automatically Close Comments” enabled in your discussion settings to limit...

View Article


Image may be NSFW.
Clik here to view.

New Plugin: Custom Related Products for WooCommerce

I don’t think I’ve ever built a WooCommerce site where the client didn’t ask: “How do I pick which related products to display.” The answer has always been “You don’t; the system randomly picks...

View Article


Add async, defer, or other attributes to enqueued WordPress scripts

Sometimes it’s useful to add the async or defer attributes to your script calls in order to prevent that script from blocking the rest of your page from rendering. This is particularly useful with...

View Article

Enable the YouTube iframe API for embedded videos

By default, videos embedded in WordPress posts are missing the enablejsapi querystring parameter that allows YouTube’s iframe API to interact with them. Fortunately you can filter the results of...

View Article

Find the top level parent term

Here’s a quick helper function to find the top level ancestor of a given term. If you like to organize your categories in nested fashion, this function will find the very top level parent no matter how...

View Article

Image may be NSFW.
Clik here to view.

Remove the tag cloud from the taxonomy edit screen

In the WordPress admin taxonomy edit screen, Tags and any hierarchical custom taxonomies include a tag cloud of “Popular Items” in the left column above the Add Term form. I find this feature useless...

View Article


Image may be NSFW.
Clik here to view.

Site search tracking for WordPress with Google Analytics

With just a little setup, Google analytics can track keywords and phrases entered into your WordPress site’s search box. By default, your search results will show up as regular page views which look...

View Article

Disable post revisions for all post types

WordPress has a handy post revision feature which saves earlier states of a post as you make edits. Not everyone wants or needs this feature, however, and it’s handy to be able to turn it off. Plugins...

View Article

Browsing all 15 articles
Browse latest View live