<?php $post_type = get_post_type( $post->ID ); if $post_type == 'project' : echo 'Work'; ?>
How can I make the above work? I want it so that if the post type is 'projects', then it echoes 'Work'.
Also, I want to add another if post type is 'movies' then it echoes 'Film' on top of that.
projectand in another place you sayprojects. If it'sprojectsand you're sayingif $post_type == 'project'then it's not going to work – eileen.carpenter Mar 14 '11 at 18:11