Skip to content

Instantly share code, notes, and snippets.

@jamiemitchell
Forked from media317/Add Custom Field to Page
Created October 15, 2013 06:09
Show Gist options
  • Select an option

  • Save jamiemitchell/6987232 to your computer and use it in GitHub Desktop.

Select an option

Save jamiemitchell/6987232 to your computer and use it in GitHub Desktop.
/** Add Project Information After Content */
add_action ( 'genesis_sidebar', 'mmi_sing_project_side' );
function mmi_sing_project_side() {
global $wp_query;
$participants = $wp_query->post->ID;
echo '<div class="mmi-sidebar">';
echo '<section class="widget">';
echo '<h4 class="widgettitle">Participate In This Project</h4>';
echo get_post_meta($participants, 'participants_needed', true);
echo '</section>';
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment