Skip to content

Instantly share code, notes, and snippets.

View WebEndevSnippets's full-sized avatar

Bruce Munson WebEndevSnippets

View GitHub Profile

/** Procedure for Site Transfer from WPE to Other Host */

  1. Download latest ZIP from WPE (Backup Points) + last 29 zips

  2. Download uploads folder (and all other custom/non-WordPress folders)

  3. Upload WPE ZIP to new server

  4. Extract/unzip WPE ZIP file on new server

@WebEndevSnippets
WebEndevSnippets / 0_reuse_code.js
Created May 29, 2014 13:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@WebEndevSnippets
WebEndevSnippets / genesis_site_layout.php
Created October 20, 2012 23:11 — forked from wpsmith/genesis_site_layout.php
Genesis: Force Specific Layout on a page
/**** Truly Force Layout without allowing the User to Override the preferred/recommended layout ****/
// Force Full Width Layout
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
// Force Content-Sidebar Layout
add_filter( 'genesis_site_layout', '__genesis_return_content_sidebar' );
// Force Sidebar-Content Layout
add_filter( 'genesis_site_layout', '__genesis_return_sidebar_content' );
@WebEndevSnippets
WebEndevSnippets / functions.php
Created October 20, 2012 13:04 — forked from billerickson/functions.php
WordPress: Limit Homepage to One Category
/**
* Limit homepage to one category
*
*/
function we_home_query( $query ) {
if( $query->is_main_query() && $query->is_home() && !is_admin() )
$query->set( 'category_name', 'sample-category' );
}
add_action( 'pre_get_posts', 'we_home_query' );