I've successfully created a customized html output template by renaming widget.php and changing template filename, following your instructions. Works fine. Sidebar shows Title, and main content field from a custom post type I set-up. All good.
Now I want to show a custom field in this post type (name of custom field = "description-presentation", INSTEAD OF each post's main content field. To do that, I've tried inserting this "get_custom_post" function into my custom template for this plug-in:
$custom_fields = get_post_custom();
$description-presentation = $custom_fields['description-presentation'];
foreach ( $description-presentation as $key => $value )
echo $key . " => " . $value . "
I've placed it both inside and outside the loop (before and after the "while have-posts" statement).
Nothing works. The sidebar is blank.
Can you tell me how to display my custom field in the sidebar?
Thank you in advance