This file contains 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]--> |
This file contains 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 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 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 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 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 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 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 | |
/** | |
* Loop Add to Cart | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates | |
* @version 2.1.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
This file contains 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 | |
/** | |
* Loop Add to Cart | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates | |
* @version 2.1.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
This file contains 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
/** | |
* Retrieve path of singular template in current or parent template. | |
* | |
* The template path is filterable via the 'singular_template' hook. | |
* | |
* @since 4.3.0 | |
* | |
* @see get_query_template() | |
* | |
* @return string Full path to singular template file |
OlderNewer