Skip to content

Instantly share code, notes, and snippets.

View alisonmf's full-sized avatar
🏠
Working from home

Alison Fulton alisonmf

🏠
Working from home
View GitHub Profile
@alisonmf
alisonmf / slider-dynamic.php
Created May 28, 2014 02:20
PHP: simple WordPress slider w/ ACF
<section class="flexslider-sidebar">
<ul class="slides">
<?php $args=array(
'post_type' => 'platinum_logos',
'posts_per_page' => 4,
'orderby' => 'rand'
@alisonmf
alisonmf / link-interceptor.js
Created June 3, 2014 14:16
intercepts the link to create a "speed bump" popup, letting you know you are leaving the site. requires bPopup
@alisonmf
alisonmf / rewrites
Created October 16, 2014 15:44
301 rewrite move from sub folder to TLD
RewriteRule ^folder/(.*)$ http://domain.com/$1 [R=301,NC,L]
@alisonmf
alisonmf / 0_reuse_code.js
Last active August 29, 2015 14:14
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
@alisonmf
alisonmf / post_thumbnail.php
Created January 26, 2015 21:13
the_post_thumbnail or Featured Image in WordPress
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else {
echo '<img src="';
@alisonmf
alisonmf / single-work.php
Created February 4, 2011 02:31
new single page for a single portfolio piece of work
<?php get_header(); ?>
<div id="content">
<h1 class="noLine">Work</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="singleWork">
@alisonmf
alisonmf / work.php
Created February 4, 2011 02:37
work template for the main work page
<?php
// Page Template Name: Work
?>
<?php get_header(); ?>
<div id="content">
@alisonmf
alisonmf / people.php
Created February 4, 2011 02:53
our people page
<?php
// Page Template Name: Culture / People
?>
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>