Skip to content

Instantly share code, notes, and snippets.

View nikcree's full-sized avatar

Nik Cree nikcree

View GitHub Profile
@nikcree
nikcree / Clickable Phone Number
Last active August 29, 2015 14:23
Clickable Phone Number Example
<a title="Click To Call (07) 3103 3642" href="tel:+6131033642">(07) 3103 3642</a>
add_filter( 'genesis_attr_content', 'custom_attributes_content' );
/**
* Add the class needed for FacetWP to main element.
*
* Context: Posts page, all Archives and Search results page.
*
* @author Sridhar Katakam
* @link http://sridharkatakam.com/facetwp-genesis/
*/
function custom_attributes_content( $attributes ) {
@nikcree
nikcree / 0_reuse_code.js
Created March 6, 2014 00:06
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
@nikcree
nikcree / register-post-type.php
Created September 16, 2013 21:35 — forked from justintadlock/register-post-type.php
Add Custom Post Type to WordPress
<?php
/* Register custom post types on the 'init' hook. */
add_action( 'init', 'my_register_post_types' );
/**
* Registers post types needed by the plugin.
*
* @since 0.1.0
* @access public