Here’s a function that will add support to filter for pdf’s (or any other supported file type just change the slug) in WordPress media. Add the following to functions.php: function modify_post_mime_types( $post_mime_types ) { // select the mime type, ‘application/pdf’ //
WordPress Checklist
Checklist to Create the Perfect WordPress Website
Simple WordPress Admin Customizations
Whether you are just looking to customize your own WordPress site or are designing one for a client – these three snippets will make an impression. 1. Simple Login URL To change the default URL for logging into your WordPress
Adding Print Stylesheet to WordPress
Adding Print Stylesheet to WordPress WpTuts+
How to Add Facebook and Twitter Buttons Without a Plugin
Facebook Like Button: Add following to page, post, template where you want it to appear: <iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false& width=450&action=like&colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:60px;”> </iframe> Options: Show the friend icons under the button: show_face=true Display the
WordPress Shortcode: Embed a PDF in an iframe
WordPress Shortcode: Embed a PDF in an iframe Shortcode to display a PDF file on your WordPress website: The PDF is loaded through Google docs and then displayed in an iframe, on your site. First paste the code below into
How to Add Meta Copyright Info to WordPress
How to Add Meta Copyright Info to WordPress WPRecipes.com
How to Edit the WordPress Admin Help Dropdown Menu
At the top right of the WordPress Admin panels you’ll see a button that says “Help.” When you click it, Help text slides down. You can add your own custom help text here and customize it for different Admin panels. For
Custom Write Panels
WordPress Custom Write Panels WedDesignFan.com
Display Post Thumbnails in RSS Feed
Code below will get the post thumbnail and automatically add it to your RSS feeds. Paste the code into functions.php and save the file. Your theme must support post thumbnails for this to work. function cwc_rss_post_thumbnail($content) { global $post; if(has_post_thumbnail($post->ID))