Skip to content

Instantly share code, notes, and snippets.

<div class="two-thirds first">this column is 2/3</div>
<div class="one-third">this column is 1/3</div>
<?php
/**
* Remove post titles from Grid Loop
*
* @author Bill Erickson
* @link http://www.studiopress.com/forums/topic/grid-loop-plugin-remove-post-title/
*/
function be_remove_grid_loop_titles() {
if( apply_filters( 'is_genesis_grid_loop', false ) )
<?php
// Full Width Landing Page
function testing() { ?>
This should be full width…
<?php }
add_action ('be_content_area', 'testing');
/**
* Styled Ordered List
* @author Bill Erickson
* @link http://www.billerickson.net/code/styled-ordered-list/
*/
.entry-content ol {
counter-reset: li;
list-style: none;
*list-style: decimal;
<?php
/**
* Intro Content
*
*/
function be_intro_content() {
if( is_page() )
$intro = get_post_meta( get_the_ID(), 'be_intro_content', true );
if( is_home() )
<?php
/**
* Post Authors Post Link Shortcode
*
* @author Bill Erickson
* @link http://www.billerickson.net/wordpress-post-multiple-authors/
*
* @param array $atts
* @return string $authors
<?php
/**
* Category Subtitle
*
*/
function be_category_subtitle() {
// Make sure this is a category archive
if( ! is_category() )
<?php
function be_call_to_action() {
$title = esc_html( get_option( 'options_be_cta_title' ) );
$button_text = esc_html( get_option( 'options_be_cta_button_text' ) );
$button_url = esc_url( get_option( 'options_be_cta_button_url' ) );
if( $title && $button_text && $button_url )
echo '<div class="call-to-action"><div class="wrap"><p>' . $title . '</p><p><a href="' . $button_url . '" class="button">' . $button_text . '</a></p></div></div>';
<?php
/**
* Your Child Theme
*
* Template Name: Landing
*/
/**
* Flexible Content
*
<?php
$videos = get_post_meta( get_the_ID(), 'be_attorney_video', true );
if( $videos ) {
for( $i = 0; $i < $videos; $i++ ) {
$title = esc_html( get_post_meta( get_the_ID(), 'be_attorney_video_' . $i . '_title', true ) );
$video = esc_url( get_post_meta( get_the_ID(), 'be_attorney_video_' . $i . '_video', true ) );
$thumbnail = (int) get_post_meta( get_the_ID(), 'be_attorney_video_' . $i . '_thumbnail', true );
// Thumbnail field returns image ID, so grab image. If none provided, use default image