Skip to content

Instantly share code, notes, and snippets.

@kirstenkeister
kirstenkeister / people-links-meta.php
Created November 10, 2011 16:58
WPAlchemy meta definitions for people-links
@kirstenkeister
kirstenkeister / project-meta.php
Created January 4, 2012 20:24
WPAlchemy meta definitions for project-meta
<div class="my_meta_control">
<a style="float:right; margin:0 10px;" href="#" class="dodelete-links button remove-all">Remove All</a>
<label>Project Staff<span>(current Staff associated with the project)</span></label>
<p>Add staff to project by selecting them from the dropdown. Add addtional staff by clicking the "Add Staff" button.</p>
<?php while($mb->have_fields_and_multi('links')): ?>
<?php $mb->the_group_open(); ?>
@kirstenkeister
kirstenkeister / project-meta.php
Created January 4, 2012 20:32
WPAlchemy meta definitions for project-meta (working, hardcoded)
<div class="my_meta_control">
<a style="float:right; margin:0 10px;" href="#" class="dodelete-links button remove-all">Remove All</a>
<label>Project Staff<span>(current Staff associated with the project)</span></label>
<p>Add staff to project by selecting them from the dropdown. Add addtional staff by clicking the "Add Staff" button.</p>
<?php while($mb->have_fields_and_multi('links')): ?>
<?php $mb->the_group_open(); ?>
<?php
@kirstenkeister
kirstenkeister / content-person.php
Created January 19, 2012 19:51
WPAlchemy meta definitions for repeating links
<?php
global $peoplelinks_mb;
$peoplelinks_mb->the_meta();
if ($peoplelinks_mb->have_fields('links')) { ?>
<div id="info-links" class="column left">
<h2 class="column-title">Links</h2>
<ul>
<?php // loop a set of field groups
@kirstenkeister
kirstenkeister / content-person.php
Created January 31, 2012 21:39 — forked from jdickie/content-person.php
WPAlchemy meta definitions for repeating links
<?php
global $peoplelinks_mb;
$peoplelinks_mb->the_meta();
while($peoplelinks_mb->have_fields('links')) {
?>
<?php
if(is_first()) { ?>
<div id="info-links" class="column left">
<h2 class="column-title">Links</h2>
<ul>
@kirstenkeister
kirstenkeister / project-staff
Created February 23, 2012 22:22
Repeating fields for project pages
<?php
global $project_mb;
$project_mb->the_meta();
$i = 0;
while($project_mb->have_fields('links') || $project_mb->have_fields('paststaff') ) {
if($i == 0)
{ ?>
<div id="info-staff" class="column left">