View difference between Paste ID: vzK23KRL and 6DRidZ44
SHOW: | | - or go back to the newest paste.
1
<?php
2
	$meta = get_post_meta(get_the_ID(), 'gender', true); 
3
							
4-
	if($meta == 'm') {get_template_part( 'includes/inc-blog' );}
4+
	if($meta == 'm') {get_template_part( 'includes/inc-male' );}
5
							
6-
	elseif ($meta == 'image') {get_template_part( 'includes/inc-image' );}
6+
	elseif ($meta == 'f') {get_template_part( 'includes/inc-female' );}
7
						
8
	else {get_template_part( 'includes/inc-empty' );} 
9
							
10
?>