Created
February 12, 2013 23:35
-
-
Save Dirtyern12/4774530 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 | |
| add_action( 'genesis_post_content' , 'wps_do_price' ); | |
| function wps_do_price() { | |
| wps_class_open( 'price' ); | |
| echo '<p>', '$'.__(get_post_meta( $post->ID, '_d2c_price', true ), 'd2c').'</p>'; | |
| wps_div_close(); | |
| } | |
| genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember to call
global $postat the start of the function - it's not defined otherwise and you'll either just get a notice, (if WP_DEBUG is on) or nothing appear.