How To Display a Message on Old WordPress Posts

January 31, 2012 | CSS, WordPress

message

If you post helpful information on your blog chances are some of your early posts are now outdated as technologies have changed over the years. Let’s take a look at how we can add a mix of PHP tags to our WordPress themes to automatically add a small disclaimer or warning message to posts over X years old.

The little snippets of code we’re going to add to our theme will allow us to display a message above our post content, but only on posts over a number of years old. We might only want to display this message on certain types of posts, in my case it’s only my tutorials that have become outdated, so we’ll also add a category filter to target only old posts from a particular section of the blog. Read the full story…

 

Quick Tip! 9 Handy WordPress Code Snippets (That You Really Should Know!)

November 9, 2011 | WordPress

Here are some short but handy code snippets that may make your life as a WordPress developer a little easier. We’ll cover a little bit of everything, from how to automatically delete posts, how to quickly dish out a post thumbnail, to how to redirect users once they’ve logged in. Open up your text-replacement program and get ready to add a few new shortcuts!

Source: http://wp.tutsplus.com/tutorials/quick-tip-9-handy-wordpress-code-snippets-that-you-really-should-know/

We’ll start off with a few simple one-liners. Read the full story…

 

Happy Holidays! Free premium templates for your website

October 21, 2011 | Inspirations, Miscellaneous, Web Design, WordPress

Holiday Seasons are nearing and what better option to celebrate then to gift someone. And as the holidays near we would like to gift you some great web templates. To be true, we have not made the templates and we do not take credit for it. But these are for free and can be used by anyone. So if you are creating a e-commerce website using wordpress or a corporate website, or need a PSD which you can modify by yourself, we have it here. So without further ado, we give you these gifts. Read the full story…

 

5 life saving code snippets to make your WordPress website maintaining delightful

September 28, 2011 | WordPress

Wordpress

I have been searching for a good topic to write on, since past few days and today I finally found it while working on WordPress. While working with WP I realized that there are a lot of things that we can do. I hope these
following snippets will help you guys out there.

  • Disable theme change property
    While creating websites based on WordPress for clients, the main thing that you need to ensure is that clients do not switch themes. For this you just need to add this piece of code to your functions.php file.

    add_action('admin_init', 'remove_theme_menus');
    function remove_theme_menus() {
    global $submenu; unset($submenu['themes.php'][5]);
    unset($submenu['themes.php'][15]);
    }
    Once saved, this will disable/remove the “Theme” submenu from WP Dashboard. And client won’t be able to switch themes anymore. Read the full story…
 

10 beautiful working free wordpress plugins your blog should have.

March 27, 2011 | Web Design, WordPress

There are a number of free and commercial blogging engines available out there but the one that stands out is obviously WordPress. With so many blogs running and so many developers working to create a better blog experience WordPress has got to be the number one choice for most of the bloggers. What makes WordPress so obvious winner of the category? Well it is the number of Plugins or Add-ons that you get to make your blogging experience better and the best part is that most of them do not cost a penny. Here we have taken time to find out 10 WordPress plugins that will help you create a better blog. Read the full story…
 
WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera