Problem:
WooThemes Features Plugin creates small boxes on the homepage with teasers (for product or service features) and links to a full page for that feature. The full page displays with duplicated title and the meta information, just like a blog post. I wanted this to go away.
I spent time hunting around for settings in the plugin directory, but had no luck. I found out that WooThemes treats Features as a custom post type, but still uses the same template for output (single.php). At least this is true for those WooThemes that have the Features Plugin already enabled in the theme. I am using Appply, one of the newer ones, so this was the case.
Solution:
- Open single.php in your theme directory.
- Find this code:
<header>
<h1><a href=”<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h1>
<?php woo_post_meta(); ?>
</header>
- Replace it with this code:
<?php
if ( ‘post’ == get_post_type() ) { ?>
<header>
<h1><a href=”<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h1>
<?php woo_post_meta(); ?>
</header>
<?php } ?>
This will result in only posts of the default post type displaying the blog title and meta information. Custom Post Types will not.