Skip to content

Instantly share code, notes, and snippets.

@stwalkerster
Created December 19, 2016 13:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save stwalkerster/8899a7ed20987264d146b3c171346a4c to your computer and use it in GitHub Desktop.
if(get_post_meta(get_the_ID(), 'ed_post_mode', true) != '') :
switch(get_post_meta(get_the_ID(), 'ed_post_mode', true)) :
case 'trip':
get_template_part('elitetrip');
break;
case 'session':
get_template_part('elitesession');
break;
endswitch;
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment