Skip to content

Instantly share code, notes, and snippets.

<?php
//* Remove the entry meta in the entry header
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop
add_action( 'genesis_loop', 'custom_do_loop' ); // Add custom loop
function custom_do_loop() {
add_action( 'pre_get_posts', 'sk_show_titles_only_category_pages' );
/**
* Show Linked Titles Only for Posts in Category Pages
*
* @author Sridhar Katakam
* @author Bill Erickson
* @link http://www.billerickson.net/customize-the-wordpress-query/
* @param object $query data
*
*/
<?php
/**
* The idea (advanced version) of using Masonry in WordPress was taken from Sridhar Katakam's blog post (Link Below).
* Here we are applying the idea in a different way. In this specific scene, we only need the Masonry goodness on Main Page.
* Link - http://sridharkatakam.com/using-masonry-genesis-pinterest-like-layout/
*
* NOTE: Here we did not use Masonry Brick for Image and CSS, as done in Sridhar's Tutorial. As, we already done some css
* work for .entry and gave it a fixed width; and images in this scene were not featured images or images directly fom post.
*
<?php
add_action('genesis_after_header','portfolio_title');
function portfolio_title() { ?>
<div class="portfolio-title">
<div class="wrap">
<h1 class="entry-title" itemprop="headline">
<span class="portfolio-headline">Portfolio » </span>
<?php the_title(); ?>
</h1>
<?php
/**
* Template Name: Filterable Portfolio
*
* By Sridhar Katakam (http://sridharkatakam.com) based on Adapt Theme (http://www.wpexplorer.com/adapt-free-responsive-wordpress-theme/)
*/
?>
<?php
<?php
/**
* Template Name: Office Hours Template
* Description: Used as a page template to show page contents, followed by a loop
* through the "Genesis Office Hours" category
*/
// Add our custom loop
add_action( 'genesis_loop', 'cd_goh_loop' );
<?php
add_action( 'genesis_loop', 'be_custom_loop' );
remove_action( 'genesis_loop', 'genesis_do_loop' );
function be_custom_loop() {
global $post;
// arguments, adjust as needed
$args = array(
@jamiemitchell
jamiemitchell / functions.php
Created September 22, 2014 23:26
Remove unwanted tags that are auto inserted by WordPress
<?php
/* Remove tags inside shortcodes
------------------------------------------------------------ */
function wpex_fix_shortcodes($content){
$array = array (
'<p>[' => '[',
']</p>' => ']',
@jamiemitchell
jamiemitchell / functions.php
Created September 23, 2014 02:16
Move post info above post title in Genesis
<?php
/* Move post info above post title
------------------------------------------------------------ */
remove_action( 'genesis_entry_header', 'genesis_post_info', 12);
add_action( 'genesis_entry_header', 'genesis_post_info', 9 );
@jamiemitchell
jamiemitchell / functions.php
Created September 23, 2014 02:52
Filter the site Title in Genesis
<?php
/* Filter the site Title in Genesis
------------------------------------------------------------ */
add_filter('genesis_seo_title', 'jmd_site_title' );
function jmd_site_title( $title ) {
// Change text as you wish
$custom_title = '<span>JM</span>Design';