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: Recent Posts with Images | |
Plugin URI: http://webdevstudios.com | |
Description: Display recent posts with images filterable by category or post type in a widget area. | |
Version: 1.0.0 | |
Author: WebDevStudios | |
Author URI: http://webdevstudios.com | |
License: GPLv2 | |
Text Domain: 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 | |
add_action( 'save_post', 'child_sticky_factory', 99 ); | |
/** | |
* Allow sticky posts in a CPT | |
*/ | |
function child_sticky_factory() { | |
$post_id = get_the_ID(); | |
$stickem = get_post_meta( $post_id, '_child_sticky', 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
/** | |
* Be sure to include library scripts in this order. Can be placed either | |
* in the header or footer. | |
*/ | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-infinitescroll/2.0b2.120519/jquery.infinitescroll.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/masonry/3.1.2/masonry.pkgd.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.0.4/jquery.imagesloaded.min.js"></script> |
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', 'my_rss_template' ); | |
/** | |
* Register custom RSS template. | |
*/ | |
function my_rss_template() { | |
add_feed( 'short', 'my_custom_rss_render' ); | |
} |
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 | |
/** | |
* Customs RSS template with related posts. | |
* | |
* Place this file in your theme's directory. | |
* | |
* @package sometheme | |
* @subpackage theme | |
*/ |
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 | |
/** | |
* Customs RSS feed with related posts. | |
* | |
* Place this file in your theme's directory. | |
* | |
* @package sometheme | |
* @subpackage theme | |
*/ |
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 | |
/** | |
* Must-Use Functions | |
* | |
* A class filled with functions that will never go away upon theme deactivation. | |
* | |
* @package WordPress | |
* @subpackage GRD | |
*/ | |
class GRD_Functions { |
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
/* Grid | |
12 column - http://responsive.gs | |
--------------------------------------------- */ | |
.row { | |
padding-bottom: 0; | |
} | |
.col { | |
float: left; | |
width: 100%; |
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
// Create REM values with PX fall back | |
// | |
// Generate a REM with PX fallback from | |
// $baseFontSize. Enter the desired size based | |
// on pixels in numerical form. Supports shorthand. | |
// | |
// Forked from: http://codepen.io/thejameskyle/pen/JmBjc | |
// | |
// @author Greg Rickaby | |
// @since 1.0 |