Skip to content

Instantly share code, notes, and snippets.

@jhgreenblatt
Created May 11, 2010 06:02
Show Gist options
  • Select an option

  • Save jhgreenblatt/396968 to your computer and use it in GitHub Desktop.

Select an option

Save jhgreenblatt/396968 to your computer and use it in GitHub Desktop.
//Creating the content for the Single Post
function remove_single_post() {
remove_action('thematic_singlepost', 'thematic_single_post');
}
add_action('init', 'remove_single_post');
function pickle_single_post() {
global $post;
?><div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class();?>">
<ul>
<?php if(get_post_meta($post->ID, 'pickle-name')){ ?><li><?php echo get_post_meta($post->ID, 'pickle-name', $single = true); ?></li><?php }
if(get_post_meta($post->ID, 'pickle-maker')){ ?><li><?php echo get_post_meta($post->ID, 'pickle-maker', $single = true); ?></li><?php }
if(get_post_meta($post->ID, 'store-purchased')){ ?><li"><?php echo get_post_meta($post->ID, 'store-purchased', $single = true); ?></li><?php }
if(get_post_meta($post->ID, 'store-location')){ ?><li"><?php echo get_post_meta($post->ID, 'store-location', $single = true); ?></li><?php }
if(get_post_meta($post->ID, 'price')){ ?><li><?php echo get_post_meta($post->ID, 'price', $single = true); ?></li><?php }
if(get_post_meta($post->ID, 'vegetable-type')){ ?><li><?php echo get_post_meta($post->ID, 'vegetable-type', $single = true); ?></li><?php }
if(get_post_meta($post->ID, 'flavor')){ ?><li><?php echo get_post_meta($post->ID, 'flavor', $single = true); ?></li><?php }
if(get_post_meta($post->ID, 'texture')){ ?><li><?php echo get_post_meta($post->ID, 'texture', $single = true); ?></li><?php }
?> </ul>
</div>
<?php
}
add_action('thematic_singlepost', 'pickle_single_post');
// End of SINGLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment