Skip to content

Remove posts or pages from menu when trashed (or set to draft)

Ever wanted posts to be removed from a menu when deleted? Maybe. Ever wanted them removed when set to draft? Less likely but I’ll tell you how to do both anyway! The first is really easy and I pulled the solution from an open ticket on WordPress Trac. add_action( ‘wp_trash_post’, ‘_wp_delete_post_menu_item’ ); and that’s it. […]

Read & Discuss »

Clearing WordPress Cached Feeds: Transients

I’ve been doing a ton of work with RSS feeds lately, using them to sync data across nearly 2000 sites. I was running into an issue with WP caching of feeds. There’s a filter to change how long WP holds the RSS feed information in cache and is easy to use (link): function lower_feed_cache_time() { […]

Read & Discuss »

My favorite way to install WordPress (SSH)

The first one to show me most of this was my friend Topher and I added an extra command. It’s the fastest way to install a fresh version of WordPress on an empty server just waiting for it. You’ll need SSH access enables for the server, and you’ll need to connect to the server using a […]

Read & Discuss »

Include plugin content in your get_the_content call

First, let’s define when you’d use this. Here’s where I as at. I was pulling in a most recent post into a page that was not the blog. Not just onto a page, but into a custom post type (for displaying small content on the home page) that only had a couple of fields available […]

Read & Discuss »

Change WordPress Login Message – Filter It Out

This is an add-on to my last post about customizing the login page. My client wanted to (very slightly) change the text a user sees on the Forgot Password page. It took me way too long to come across the login_message filter. here’s my function: function forgotpass_message() { $action = $_REQUEST[‘action’]; if( $action == ‘lostpassword’ […]

Read & Discuss »

Changing WordPress Login page without a plugin – Hooks and Filters FTW

So the plugin I wrote about last post didn’t handle everything like I thought it did. If a user entered their password incorrectly, they were brought straight to the default wp-login.php page with the WP logo staring them right in the face. Exactly what my client did not want. It turns out this was a […]

Read & Discuss »

Plugin Review – Theme My Login

Plugin can be found on the WP plugin repository here. This morning I found myself needing to quickly make the standard WP login page not look like the standard WP login page. Then I realized I also needed the same for the password recovery page and also to redirect the logout page away to the […]

Read & Discuss »

Silence

It sure doesn’t look great to have a “blog” section with two posts and no new ones for months and months huh? I think getting too ambitious about it is part of the problem, at least for me. Look for some short reviews on stuff I’m doing or have done, plugins I’m using or wish […]

Read & Discuss »

Fonts I Like

I really like fonts. Really really. I could (and too often do) spend a lot of time browsing through hundreds of fonts trying to find one that fits my needs just right. When developing or designing a website, most often I’ll look to Font Squirrel to get what I need or even to just use their […]

Read & Discuss »

Thinking of getting/revamping a website?

If you’re looking into getting a website built for you, whether it’s new or an updating to an existing one, there are a few questions it would be helpful to ask yourself (and answer).

Read & Discuss »