Treehouse: Grow your CSS skills. Land your dream job.

WordPress Tricks

  • # July 13, 2011 at 1:30 pm

    Just wanted to strike up a discussion and see what cool WordPress trick(s) (or lesser known features) you have come across in your exploration.

    One of my favorites is

    < ? wp_oembed_get(); ?>

    This one piece of code will generate the embed code for many different services such as Vimeo, Youtube, Flickr, Hulu and more. Check out the list here.

    It has a whole list of arguments with it.

    < ?php $embed_code = wp_oembed_get('', array('width'=>400)); ?>

    It’s a great little piece of lesser known WordPress code that’s actually been there since 2.9.0

    # July 13, 2011 at 1:42 pm

    WP-Snippets is a good site for stuff like that.

    # July 14, 2011 at 5:32 am

    My favourite is this:

    function custom_login() {
    echo ' }

    Goes in functions.php. Allows you to override the styles for the login page – rather than just changing the logo, and without the need for a plugin.

    # July 14, 2011 at 11:24 am

    Good tip @Brightonmike. I’ll have to check that one out

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.