Tag Info

Hot answers tagged

2

I got the following tutorial a very good start for a widget creation: How to Create a Custom WP Widget — WPBeginner And I used the tutorial and made my own first widget for my plugin. You can get all my code here in Github.


1

Just a simple php if to check the contents of the field before outputting markup. <?php if( $second_comment = get_field('second_content_block') ){ ?> <div class="page-content-text-additional"> <?php echo do_shortcode("[vr_jsp] $second_comment [/vr_jsp]"); ?> </div> <?php } ?> You can eliminate the need ...



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