I am using Custom Post Type UI and Custom Fields plugins for the WordPress theme I am creating.
I have created a custom post type of price and I have created a custom taxonomy called price_types using Custom Post Type UI.
On my Prices page I can loop through the built in taxonomy 'Categories' easily using the code below:
$categories = get_terms('category');
foreach( $categories as $category ):
?>
<section class="pricing">
<h2><?php echo $category->name; // Print the cat title ?></h2>
</section>
<?php endforeach; ?>
If I try and do the same for my custom taxonomy even though I have added entries I get nothing?
$categories = get_terms('price_types');
foreach( $categories as $category ):
?>
<section class="pricing">
<h2><?php echo $category->name; // Print the cat title ?></h2>
</section>
<?php endforeach; ?>
Does anyone have any ideas what I am doing wrong?