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
/** | |
* Get GitHub API Data | |
* | |
* Uses the GitHub API (v3) to get information | |
* regarding open or closed issues (bug reports) | |
* or commits, then outputs them in a table. | |
* | |
* Derived from code originally developed by | |
* Michael Fields (@_mfields): | |
* @link https://gist.github.com/1061846 Simple Github commit API shortcode for WordPress |
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
/***************************************************************************************** | |
* Customize TinyMCE Configuration | |
*******************************************************************************************/ | |
// http://tinymce.moxiecode.com/wiki.php/Configuration | |
function nhcc_tinymce_config( $init ) { | |
// Change code cleanup/content filtering config | |
// Don't remove line breaks |
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
/** | |
* Hook into hypothetical action hook | |
*/ | |
function themeslug_after_post() { | |
// Let's only do something on | |
// single blog posts | |
if ( is_single() ) { | |
// output a hypothetical related posts function | |
related_posts(); | |
} |
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 | |
// First, backup the default $postdata | |
$backup = $post; | |
// Now, override the default | |
$tags = wp_get_post_tags($post->ID); | |
// Now, open the if ( $tags ) statement | |
if ($tags) { | |
$tag_ids = array(); |
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 | |
/** | |
* Stop Skype from hijacking phone numbers | |
* | |
* Adds a META tag to the HTML document head, that | |
* prevents Skype from hijacking/over-writing phone | |
* numbers displayed in the Theme. | |
* | |
* @link http://www.wpbeginner.com/wp-tutorials/how-to-fix-skype-overwriting-phone-numbers-in-wordpress-themes/ H/T WPBeginner | |
*/ |
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 get_header( oenology_get_context() ); ?> | |
<!-- Begin Main (div#main) --> | |
<div id="main"> | |
<?php get_template_part( 'loop', oenology_get_context() ); ?> | |
</div> | |
<!-- End Main (div#main) --> | |
<?php | |
if ( 'one-column' != $oenology_options['post_index_layout'] ) { |
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 | |
/** | |
* | |
*/ | |
?> |
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 | |
/** | |
* Master/Default template file | |
* | |
* This file is the master/default template file, used when no other file matches in | |
* the {@link http://codex.wordpress.org/Template_Hierarchy Template Hierarchy}. | |
* | |
* @uses oenology_get_context() Defined in /functions/custom.php | |
* | |
* @link http://codex.wordpress.org/Function_Reference/get_header get_header() |
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 | |
/** | |
* Short Description | |
* | |
* Long description | |
* | |
* @package Theme Name | |
* @copyright Copyright (c) YYYY, Your Name | |
* @license http://www.example.com License 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 | |
/** | |
* Short Description | |
* | |
* Long description | |
* | |
* @param datatype $param (required/optional) Description | |
* | |
* @return datatype Description | |
*/ |
OlderNewer