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 | |
| /** | |
| * Plugin Name: | |
| * Plugin URI: | |
| * Description: | |
| * Version: 1.0 | |
| * Author: Rabbitinblack | |
| * Author URI: http://www.rabbitinblack.com | |
| * License: GPL2 | |
| */ |
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_action('after_setup_theme', 'change_plugin_image_size'); | |
| function change_plugin_image_size() { | |
| remove_image_size('plugin-image'); | |
| add_image_size('plugin-image', 300, 150, true); | |
| } | |
| ?> |
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 remove_image_size($name); ?> |
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
| function custom_wp_trim_excerpt($text) { | |
| $raw_excerpt = $text; | |
| if ( '' == $text ) { | |
| $text = get_the_content(''); | |
| $text = strip_shortcodes( $text ); | |
| $text = apply_filters('the_content', $text); | |
| $text = str_replace(']]>', ']]>', $text); | |
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 | |
| $args = array( | |
| 'cat' => 1, | |
| 'posts_per_page' => 4 | |
| ); | |
| $custom_query = new WP_Query($args); | |
| while($custom_query->have_posts()) : $custom_query->the_post(); ?> | |
| <?php endwhile; ?> | |
| <?php wp_reset_postdata(); // reset the query ?> |
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 | |
| /* | |
| Template Name: Snarfer | |
| */ | |
| ?> |
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
| <!DOCTYPE html> | |
| <!--[if IE 7]> | |
| <html class="ie ie7" <?php language_attributes(); ?>> | |
| <![endif]--> | |
| <!--[if IE 8]> | |
| <html class="ie ie8" <?php language_attributes(); ?>> | |
| <![endif]--> | |
| <!--[if !(IE 7) | !(IE 8) ]><!--> | |
| <html <?php language_attributes(); ?>> | |
| <!--<![endif]--> |
NewerOlder