Hey there! I just released a brand new WordPress plugin called Twitter Embed. It supports several ways of embedding tweets into your WordPress posts and pages. The new (new-new) Twitter interface has introduced a new link on tweets called “Embed this Tweet” which allows embedding through HTML code, shortcode or link. This plugin implements all of those ways. It will even reverse an...
Change the year of all posts in a particular category to 2012
Snippet! Change the year of all posts in a particular category to 2012 with a single SQL query (use with phpMyAdmin or the MySQL command line interface) UPDATE wp_posts AS p JOIN wp_term_relationships AS tr ON tr.object_id = p.id JOIN wp_term_taxonomy AS tt ON tt.term_taxonomy_id = tr.term_taxonomy_id JOIN wp_terms AS t ON tt.term_id = t.term_id SET p.post_date = REPLACE(p.post_date, YEAR(p...
Foller.me is Back Online, and now Filled with WordPress Goodness!
Foller.me has got a new home, again! I’ve spent a few days working on a complete overhaul since Google App Engine’s pricing model has changed, which made the app consume over $5/week. It’s not big money but I thought I’d rather host the app next to my own blog for free ;) The (yet another) new version of Foller.me is powered by WordPress, so if you’ve got friends who...
Quick Tip: Beware of the_content Filter
Here’s a quick tip! Don’t apply the_content filters because some plugins (especially social share plugins) will use that filter to add something extra before or after your content, assuming it’s your main post or page content, which is fair. I’m also pretty sure that attachment posts can add things like images there too. So if you’re using the_content filter...
WordPress Sidebars as Menus
Mika shares her thoughts and a bunch of screenshots on WordPress Sidebars as Menus, definitely a much more usable approach at widgets in WordPress. Plus, looks like this can solve the “theme switch” problem when sidebars usually just disappear and all your widgets settings are lost. Let’s hope this makes it into core sooner or later ;)
WordPress 3.3 Release Candidate 2
Sweet! WordPress 3.3 Release Candidate 2 is here and as Andrew Nacin pointed out they’re “really close to a final release.” To find out what’s new in 3.3, visit the About page after installing the release candidate. Good luck and make sure your themes and plugins throw no errors!
Sphinx in WordPress
You probably will agree with me that the standard WordPress search doesn’t even smell like search. I mean querying the database with the simplest LIKE query and sorting the results by date isn’t really a search. I’ve been keeping my eye out on Sphinx — an open source search server that works well with MySQL databases and I’ve finally had a chance to set it up for...
WordPress, Drupal and Joomla Awareness in Russia
WordPress awareness (search volume) in Russia did not change much over the last year. Joomla’s still strong but dropping steadily, which seems to be a good sign. Drupal’s worse but at least they’re doing the DrupalCon here. So we all have to do something about it to change the picture next year. Any ideas?
Custom Post Types Archives in WordPress
Did you know that register_post_type has got a has_archive argument which can be set to a string? In which case it will use that string as a slug for the archives and generate the proper rewrite rules for you. Don’t forget to visit your permalinks settings page though to flush rules when making changes.
Varnish and Preview Posts in WordPress
I wrote earlier that I started playing around with Varnish here on my site and that post has a little snippet that strips all incoming and outgoing cookies (except the admin of course.) Today I stumbled on a problem where I had no permission to preview a post I was drafting in WordPress and they all turned 404’s when I tried to. I first thought Varnish was stripping out the preview query...