Skip to content

Instantly share code, notes, and snippets.

@stwalkerster
Created Dec 19, 2016
Embed
What would you like to do?
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