Home › Forums › General Issues › No linebreaks or paragraphs with wysiwyg field › Reply To: No linebreaks or paragraphs with wysiwyg field
Thank you for that idea. I don’t know how or whether to implement it. Here is my code:
add_action('genesis_before_sidebar_widget_area', 'sidebar_custom_field');
function sidebar_custom_field() {
if ( is_single() && genesis_get_custom_field('sidebar_custom_field') )
echo '<div class="widget">'. genesis_get_custom_field('sidebar_custom_field') .'</div>';
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.