Category: WordPress

Plugin developer, Core contributor and support volunteer. Yeah, I’m a WordPress fan!

  • WordPress – Making Post/Page Content Expire

    WordPress – Making Post/Page Content Expire

    There are some excellent plugins available to allow you to make time sensitive posts and pages expire. However, these work for the entire post/page rather than just a section.

    Here’s the simple solution – a shortcode that you wrap around some content and allows you to specify a date on which it should expiry and simply not display anymore.

    (more…)

  • Adding information to your WordPress dashboard

    Dashboard Screenshot

    If you wish to add a widget to your WordPress dashboard then that’s a different, and longer, discussion. Instead I’m going to show you how to add a simple message, of your choosing, to the “Right Now” box.

    How could you use this? You could use a database lookup beforehand, for instance, to report on useful blog/theme information. I’m using it right now to report on how my competition is running – I’m performing a count on the table and reporting the output back (see image to the right).

    First of all, you need to add an action for activity_box_end pointing to your new function. All of the code discussed here should be put in your theme’s functions.php file. In this example I’m pointing it to a function named show_admin_message

    add_action('activity_box_end','show_admin_message');

    Within your function you then simply need to output the HTML. Here’s a complete piece of code that you can use…

    add_action('activity_box_end','show_admin_message');
    
    function show_admin_message() {
       $output_text = "Put your output message here";
       echo '<div style="border: 1px solid #ffd700; margin: 10px 0 0; padding: 5px; background: #ffffba; color: #000;">'.= __($output_text).'</div>';
    }

    This will display the text “Put your output message here” in a yellow box, with a darker yellow border. The text will be in black.

  • WordPress – Create an instant link to Wikipedia

    WordPress – Create an instant link to Wikipedia

    I’m often wanting to create quick and useful links to Wikipedia. Obviously, you could add a link manually each time, but wouldn’t an automated system be so much better?

    Well, crack open your functions.php file within your theme folder and add the following code.

    (more…)

  • WordPress Plugin Developer Day

    Today is WordPress Plugin Developer Day.

    The idea is to give back to those who provide useful, free plugins for WordPress.

    What they’re asking is that anyone that has ever gotten even the slightest benefit from a WordPress plugin to say thank you today by making a small donation to the plugin/developer of your choice.

    Yes, I’m one of those people, but this blog is also enhanced thanks to the plugins for others so I’ll be donating as well.

    Hopefully this will make you feel as good as it does me – they deserve our gratitude.

  • WordPress for Android

    WordPress have announced the release of the WordPress for Android App.

    According to WordPress…

    The initial release has focused on giving you the ability to manage your blog while on the go.

    Features include the ability to:

    • Configure and manage multiple blogs
    • Comment moderation including the ability to reply to comments
    • Create and Edit Posts including categories, tags and photos
    • Create and Edit Pages
    • Get notified of new comments in the Android notification bar

    I was using wpToGo, which had a more restricted set of abilities, but this taken over by WordPress and modified to this new plugin. I replaced it last night and, indeed, it is a much better and powerful tool, allowing me to view my posts and create new ones (amongst many other things) in a very easy fashion.

    If you administer a WordPress blog, this is highly recommended.