After quite a long delay we’ve finally got to launch the interview together with @kymhuynh at WordCast Conversations. Listened to it a couple of times, seems like I said the words “complex” and “complicated” three thousand times, but Kym said it was okay ;) Kym Huynh talks with Konstantin Kovshenin about his work with robotics and his passion for WordPress, WordPress...
Remove the Admin Bar in WordPress
Note to self.. Seen people talk about it. Seen people hack it. Seen people get crazy about it. The best (and only) way is: add_filter( 'show_admin_bar', '__return_false' ); And if you’d like only Administrators (or Editors) to see it, but not regular users, with one slight modification: if ( ! current_user_can( 'edit_posts' ) ) add_filter( 'show_admin_bar', '__return_false' ); Okay, all...
How To: Show Off Your Social Counters in WordPress
You know it’s all about social these days, and this post is about showing off how social you are on your WordPress website. I’m sure you’re using tonnes of social networks and all of them have friends, followers, fans and subscribers metrics, but let’s start from simple: Twitter, Facebook and RSS. We’ll write code in this post, and you may ask me why. Of course there...
Snippet: Using jQuery 1.5 in WordPress
Yes! jQuery 1.5 was released and I’m sure some of you can’t wait to start using it in their WordPress themes and plugins. So, with a few filters magic, we can get jQuery 1.5 up and running. Add the following code to your theme’s function.php file: add_filter( 'script_loader_src', 'my_script_loader_src', 10, 2 ); function my_script_loader_src( $src, $handle ) { if ( $handle ==...
Snippet: A "Feed Only" Shortcode for WordPress
This might be valuable for banner ads, pitches to get people on to your website rather than simply reading stuff in their RSS feeds. You can address your RSS subscribers differently in each and every post, just by using this WordPress shortcode trick! I’m not and ad-guy myself and I don’t care much if people read my feed or browse my website, as long as they’re reading my...
Snippet: Nofollow for Tag Cloud in WordPress
Tag clouds are good, but in a previous post called WordPress & Google Analytics: Tracking Your Tag Cloud I admitted that they’re not very useful, and especially for search engines — which is the topic I’ll discuss today. I’m not an SEO junkie or anything but I do have some knowledge of the basic rules, one of which is avoid duplicate content. Now fire up your blog...
WordPress & Google Analytics: Tracking Your Tag Cloud
I was doing some minor changes to my WordPress theme this week (have you noticed any?) — some SEO improvements and an easter egg ;) Anyhow, I came across my super duper tag cloud, which is one of the things I like most about my website, seriously. I heard enough people, mostly designers and UI experts say that the tag cloud is of no use! But I really really like it, which is why I decided...
Using Google's URL Shortener (goo.gl) in WordPress
The Google URL Shortener API has been released this week so I came up with a short snippet that generates short goo.gl URLs. The script is quite simple, you can paste it in your theme’s functions.php file or create a plugin out of it, so without further ado: function googl_shortlink($url, $post_id) { global $post; if (!$post_id && $post) $post_id = $post->ID; if ($post...
WordPress and Magic Quotes
This is crazy, and based on a post called WordPress and PHP magic quotes: you want to run me crazy! by Stefano Lissa. I’m writing a plugin prototype for WordPress that uses the new Facebook Graph API to post stuff to my wall on Facebook (upcoming blog post). The original Facebook PHP SDK comes in very handy when working with the Facebook API, and I had quite some fun using it, but...
Trends: WordPress vs Drupal vs Joomla
The battle’s been going on since 2004-2005, the three open platforms (WordPress, Drupal and Joomla) have been competing for ages. Which is the most popular? Of course you could search for reviews, votes, researches. I even came across a commercial research document about content management systems, their pros, cons and popularity. It still is difficult to convince clients (especially the...