+

Archive for / 'Dress Your WordPress code snippet'


Add YouTube channel to post

Today I am going to show you how to add a YouTube Channel to a post or page using a short code. So open up your functions.php file and copy the follow in there. Make sure to include it between the php tags . function youtubechannel($atts){ extract(shortcode_atts(array( ‘user_name’ => ”, ‘show’ => ”, ‘width’ => […]

Read more

WordPress 3.0 header images

So WordPress 3.0 has this nice feature which makes it possible to define the header image in the admin area. And if you upload a featured image on a post or page that is big enough then that Image can be used as the header image. Today I’m going to show you how to change […]

Read more

Adding a Google Calendar to WordPress with short codes

You can easily add a Google calendar to your wordpress blog using this handy plugin.   All you have to do is download the plugin, add it to your wordpress plugins folder like usual and activate it.  You’ll then have to grab a Google data api key here, then create a public calendar in Google Calendars […]

Read more

Set the Length of an Excerpt in WordPress

In WordPress, there are two ways to display a summary of a post that I know about, you can use either use < ?php the_content('Read more...'); ?> Use this with the

Read more

How to Remove the Capital “P” Function From WordPress 3.0

For a full explanation of the issue, check out Justin Tadlock’s article. You can either install the Remove WordPress to WordPress Filter plugin or add the below code to your theme’s functions.php file. remove_filter( ‘the_content’, ‘capital_P_dangit’ ); remove_filter( ‘the_title’, ‘capital_P_dangit’ ); remove_filter( ‘comment_text’, ‘capital_P_dangit’ );

Read more