Get WordPress Post or Page Slug »

We often need to display post or page slug within wordpress loop. Slug can be used to define different css class names. So, here is small snippet of code which can help you: Just copy & paste the below method into functions.php file: function the_slug() { $post_data = get_post($post->ID, ARRAY_A); $slug = $post_data['post_name']; return $slug; ...

Highlight Author Comments in WordPress »

Most often we needed a feature in WordPress to style author comments differently from the others, helping comments to stand out. Here we’ll show you how you can style the author’s comments: Step 1 – If Author Comment Open the comments.php file located in the theme directory: \wp-content\themes\yourtheme. Directly below the line: <?php foreach ($comments as $comment) : ?>  You will ...

Introduction of CSS 3 Transitions Part 1 »

CSS3 is essential part of the web now a days, CSS3 comes with lot of interesting techniques that can make your web more interactive and it can minimize lot of work for developers as well. Today we’ll review the basics of using CSS3 transitions. Link Transitions To start, we’ll begin with some basic techniques –a ...

Airport Utility Manager »

The free AirPort Utility manager from Apple lets you control your Wi-Fi network and AirPort base stations, including AirPort Express, AirPort Extreme, and Time Capsule, right from your iPhone. When you launch the app, you’ll see a picture representation of your network and devices. It’ll tell you what’s connected to what and how. You can ...

Display tweets on your WordPress blog without any plugin »

You can copy & paste the following lines of code anywhere in your theme files to display the latest tweets. Note: Please don’t forget to change your username and number of tweets to display on line 3 & 4. <?php include_once(ABSPATH . WPINC . '/feed.php'); $rss = fetch_feed('https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=catswhocode'); $maxitems = $rss->get_item_quantity(3); $rss_items = $rss->get_items(0, $maxitems); ...