I am using the Headway theme, and I need to add custom field code to page & posttitles.
This is what I need to be able to do.

The red button will be added through a custom field. It needs to be shown inline with the title. I have worked out I can do this using the headway_after_entry_title hook, but I can't seem to get the code right to retrieve the custom fields. I got this far :
//Add custom field image after entry title
function title_btn() {
echo '<div class="title-btn">[custom field code to go here]</div>';
}
add_action('headway_after_entry_title', 'title_btn');
and the outcome should be:
<a href="xxx"><img src="xxx"></a>
where the xxx is the custom field url code
Hope anybody can help me out with this.