Tag Info

Hot answers tagged

2

If the line breaks exist in the database, you just need to run your custom field output through wpautop(). Changes double line-breaks in the text into HTML paragraphs (<p>...</p>). If that doesn't work, then the line breaks probably are getting stripped before going into the database. In that case you'll need to share the code that saves ...


1

Small fix for you :) <?php if( in_array( "Yes", get_field( 'news__item--external' ) ) ) { ?> <a href="<?php echo the_field('news__item--external-url'); ?>" class="more icon--chev">View full article</a> <? } else { ?> <a href="home.php">Home</a> <?php } ?> The code to fix was: <php } else { ...



Only top voted, non community-wiki answers of a minimum length are eligible