This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( ! function_exists( 'independent_publisher_recent_posts_shortcode' ) ) : | |
| /** | |
| * Returns recent posts for given category and excludes given post formats | |
| * | |
| * Example usage: [independent_publisher_recent_posts count="10" category="Technology" exclude_formats="aside,gallery,link" more_text="« Full Archives"] | |
| */ | |
| function independent_publisher_recent_posts_shortcode( $atts /*$number_posts = '10', $category = '', $exclude_formats = array()*/ ) { | |
| $formats_to_exclude = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Add a checkbox to the featured image metabox */ | |
| add_filter( 'admin_post_thumbnail_html', 'theme_featured_image_meta'); | |
| function theme_featured_image_meta( $content ) { | |
| global $post; | |
| // Text for checkbox | |
| $text = __( "Don't display image on post.", 'textdomain' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| $Id: postie-functions.php 683869 2013-03-18 21:39:57Z WayneAllen $ | |
| */ | |
| //to turn on debug output add the following line to wp-config.php | |
| //define('POSTIE_DEBUG', true); | |
| if (!function_exists('mb_str_replace')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Raam Dev - http://raamdev.com/ | |
| * | |
| * This code loads a Flickr Photo Set and then picks a random photo from that set | |
| * After configuring your settings and loading the PHP, you can display the random photo as follows: | |
| * <a href="<?php echo $flickr_img_url_large; ?>" title="<?php echo $flickr_photo_description; ?>"> | |
| * <img title="<?php echo $flickr_photo_description; ?>" border="0" src="<?php echo $flickr_img_url; ?>" /> | |
| * </a> | |
| * |
NewerOlder