Skip to content

Instantly share code, notes, and snippets.

@billerickson
Forked from media317/Add Custom Field to Page
Last active December 22, 2015 01:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/6398486 to your computer and use it in GitHub Desktop.
Save billerickson/6398486 to your computer and use it in GitHub Desktop.
<?php
/** Add Project Information After Content */
add_action ( 'genesis_sidebar', 'mmi_sing_project_side' );
function mmi_sing_project_side() {
echo '<div class="mmi-sidebar">';
echo '<section class="widget">';
echo '<h4 class="widgettitle">Participate In This Project</h4>';
$participants = get_post_meta(get_the_ID(), 'participants_needed', false);
echo implode( ', ', $participants );
echo '</section>';
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment