Syling Custom Fields echo’s from from functions.php

How about just echoing out the needed syntax like that: echo ‘<div class=”custom-field”>’ . genesis_get_custom_field(‘instrument’) . ‘</div>’; You can also just use CSS and style the header.entry-header { //your sexy styles goes here } Since other elements inside are wrapped in their own elements and styled separately (I mean the actual H1 and meta data) … Read more

Pull random comment from specific post, display on homepage with shortcode

The main issue with the code snippet is this line: function randomComment_handler($post_id) { Check out the Codex on add_shortcode() and see if you can find the error. Spoiler: It should be like this: function randomComment_handler( $atts, $content = NULL ) { ps: You should also avoid using extract(), use $atts[‘post_id’] instead. Further consider adding the … Read more