Skip to content

Instantly share code, notes, and snippets.

Arial, Helvetica, sans-serif
"Arial Black", Gadget, sans-serif Helvetica, sans-serif
"Comic Sans MS", cursive, sans-serif
Impact, Charcoal, sans-serif
"Lucida Sans Unicode", "Lucida Grande", sans-serif
Tahoma, Geneva, sans-serif
"Trebuchet MS", Helvetica, sans-serif
Verdana, Geneva, sans-serif
Georgia, serif
"Palatino Linotype", "Book Antiqua", Palatino, serif
@RevConcept
RevConcept / recipet-query.php
Last active August 29, 2015 14:13
Conditional Query for Recipe Archive
<?php // DEFAULT LOOP
if( (!isset($_POST['product_selection']) || '' == $_POST['product_selection']) && (!isset($_POST['cat_selection']) || '' == $_POST['cat_selection'] )) { ?>
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query = new WP_Query( array(
'post_type' => 'recipes', // your CPT
@RevConcept
RevConcept / rc-custom-walker
Created May 23, 2013 16:36
This is my setup for the Custom Walker Menu we discussed at the AWP meetup. I've included the shortcode setup as well that allows the user to past a simple shortcode that will spit these custom menus out onto the page. See a live version here: http://bojacksonselitesports.com/sports-programs/bo-jackson-football
/* ==========================================================================
Custom Walker Menu for Secondary Navigation Page Templates
========================================================================== */
class Menu_With_Description extends Walker_Nav_Menu {
function start_el(&$output, $item, $depth, $args) {
global $wp_query;
$indent = ( $depth ) ? str_repeat( "t", $depth ) : '';
@chrisdigital
chrisdigital / Frontend user profile in WordPress
Created May 6, 2013 13:27
Setting up a editable user profile in WordPress on the frontend.
//How to edit a user profile on the front end?
//http://wordpress.stackexchange.com/questions/9775/how-to-edit-a-user-profile-on-the-front-end
//Forcing nickname as display_name in custom edit profile template
//http://wordpress.stackexchange.com/questions/35403/forcing-nickname-as-display-name-in-custom-edit-profile-template
///////
<?php
@trepmal
trepmal / basic-google-analytics.php
Last active October 8, 2015 21:08
Basic Google Analytics
<?php
/*
Plugin Name: Basic Google Analytics
Plugin URI: trepmal.com
Description: Adds very basic Google Analytics code. Need complex tracking? This isn't for you.
Version: 1
Author: Kailey Lampert
Author URI: kaileylampert.com
*/
@jonathonbyrdziak
jonathonbyrdziak / ExampleUsage.php
Created March 15, 2012 18:43
A Wordpress class that allows you to place watermarks on your images.
<?php
/**
* The constants defined here are used as a fallback to whatever options you
* end up specifying specifically.
*
* @var constant string
*/
define('WATERMARK_SOURCE', ABSPATH.'/wp-content/themes/mytheme/images/fb_thumb_watermark.png');
define('WATERMARK_ORIENTATION', 'bottom right');
@GreggFranklin
GreggFranklin / dabblet.css
Created December 22, 2011 15:52 — forked from chriscoyier/dabblet.css
Oprah Thing
/* Oprah Thing
Saw some movie and there was some Oprah-related commerical before it and it had title things like this during it
*/
body { background: black; padding: 100px; margin: 0; }
h1 {
text-align: center;
color: white;
text-transform: uppercase;
@bueltge
bueltge / responsive-images.php
Created September 27, 2011 17:03 — forked from mattwiebe/responsive-images.php
Mobile First Responsive Images for WordPress
<?php
/*
Plugin Name: Mobile First Responsive Images
Description: Serve up smaller images to smaller screens.
Version: 0.1.1
Author: Matt Wiebe
Author URI: http://somadesign.ca/
*/
/**