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 / 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 / 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 / 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 / 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 / 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">