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 / 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(); ?>
@alisonmf
alisonmf / random.php
Last active September 26, 2015 14:28
quick pick florida lotto
<html>
<head>
<title>Random Numbers!</title>
</head>
<body>
<?php
//Random Numbers Script
@alisonmf
alisonmf / gobble-tier.php
Last active October 28, 2022 18:32
WordPress - Get child pages and grandchild page list. Get ancestor list when on grandchild page.
<?php
if(is_page())
{
//Assuming current working page is the parent
//
$the_parent_id = $post->ID;
//Otherwise get the greatest ancestor id
//
@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 / sans-pricelabel.php
Created August 6, 2014 22:50
Remove price label from gravity form product field
<?php if ( is_page('slug') ) { // only executes on this page ?>
<script type="text/javascript">
function gform_format_option_label(fullLabel, fieldLabel, priceLabel, selectedPrice, price, formId, fieldId)
{
// Only for field with ID of 5
if (fieldId == 5)
// Disable option pricing. Simply return the field label.
// This removes the price differentials in the drop down
return fieldLabel;
}