Skip to content

Instantly share code, notes, and snippets.

@surefirewebserv
Last active December 20, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surefirewebserv/ed66ba01ce3cd6519ef7 to your computer and use it in GitHub Desktop.
Save surefirewebserv/ed66ba01ce3cd6519ef7 to your computer and use it in GitHub Desktop.
<?php /*
Template Name: Testing
*/
remove_action( 'genesis_entry_content', 'genesis_do_post_content');
add_action( 'genesis_entry_content', 'sf_new_post_content');
function sf_new_post_content() {
$company_description = do_shortcode('[types field="company-description" class="" style=""][/types]');
$location = do_shortcode( '[types field="check-box" class="" style=""][/types]' );
if ($location == 1) {
$industry = do_shortcode('[types field="random-string" class="" style=""][/types]' );
} else {
$industry = "";
}
$basicJob = '<p>' . $location . '</p><p>' . $industry .'</p>';
echo $basicJob;
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment