[wp-testers] is_post_type not working correctly

hedwig at senzafineonline.net hedwig at senzafineonline.net
Fri Jun 4 19:24:39 UTC 2010


Thanks for the help. I was trying to find a workaround and indeed  
found the get_post_type() function, and so the code became:

if ( get_post_type() == 'video' )
	$videos .= '
	<li><a href="'. get_permalink() .'" title="'. get_the_title() .'">'.  
remove_movie_title( get_the_title() ) .'</a></li>';

Thanks for your help! Although I don't understand why my old code  
stopped working with the RC versions. :)


More information about the wp-testers mailing list