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 | |
/** | |
* Custom is_tree() Conditional Tag | |
* | |
* Conditional tag that returns true if the current static Page | |
* is within a page hierarchy; that is. | |
* | |
* Derived from code originally posted as Example #4 of the Testing for Sub-Pages | |
* section of the Conditional Tags page in the WordPress Codex. | |
* |
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
/* | |
Theme Name: Oenology | |
Theme URI: http://www.chipbennett.net/themes/oenology | |
Description: Oenology is designed to be a simple, minimalist, yet feature-complete and fully documented Theme intended to serve as a base for child Themes and as an educational reference for Theme development using WordPress functions, action/filter hooks, and template tags. The Theme includes built-in breadcrumb navigation, and supports Post Formats, Navigation Menus, Post Thumbnails, Custom Backgrounds, Custom Image Headers, and Custom Editor Style. The Theme includes plug-and-play support for the WP-Paginate and Yoast Breadcrumbs plugins. <strong>Requires WordPress 3.1, and is compatible up to WordPress 3.2.</strong> | |
Version: 2.4 | |
Author: Chip Bennett | |
Author URI: http://www.chipbennett.net/ | |
Tags: fixed-width, white, black, tan, green, one-column, two-columns, three-columns, custom-header, custom-background, custom-menu, editor-style, featured-images, full-width-template, left-sidebar, post-formats, right-sidebar, sticky- |
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 | |
*/ |
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 | |
/** | |
* 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 | |
/** | |
* | |
*/ | |
?> |
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 | |
/** | |
* 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 | |
// 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
/** | |
* 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(); | |
} |