Created
May 21, 2010 16:49
-
-
Save jhgreenblatt/409081 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //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