Category Archive: WordPress
Posts about WordPress
Create .po templates for WP themes via Poedit
Creating a .po template can be tricky using Poedit, but here are the exact steps that work for me.
Automatic versioning for enqueued stylesheets
Learn how to append the theme version, random number, or both as a query-string parameter to your CSS stylesheet URLs. This is useful for automatic versioning, cache-busting during development, or both.
Break Out of Frames for WordPress
Quick JavaScript snippet to prevent scrapers and turds from framing, defaming, and/or stealing your precious content..
WordPress Comment Anchor Links
Just a head’s up about comment anchor links: they tend to vary a lot from theme to theme, and whether or not there are comments on the post.
WordPress Load Order
Micro-post today, on the load order of WordPress..
Another WordPress Cron Example
Here is another WP Cron example for my previous article on WP Cron tips.
WordPress Cron Tips
Here are some quick tips for working with WordPress Cron. The trick to using the scheduling functions is to get the next scheduled cron using wp_next_scheduled().
Set attachment as featured image
Here’s how to set the first attachment as the featured image for posts in WordPress. This is useful for User Submitted Posts, which attaches uploaded images to each submitted post.
Disable or customize WP read more link
Quick snippet for customizing or disabling the WordPress “read more” link for the_excerpt().
Replace content in WordPress header.php
Here’s how to filter content in WordPress’ header.php template file using PHP.
Require user login for any plugin
Here’s a quick trick to require user-login for any plugin. For example, if you want users to be able to use your chat plugin only if they are logged in. Here’s how..
Add titles to previous_post_link & next_post_link
Here’s a quick way to include a title in previous_post_link() and next_post_link().