Tag Info

Hot answers tagged

1

You can use get_field from ACF to check if the field is available and according to the documentation how you conditionally check if a field has contents. <div class="wrapper"> <?php if (get_field('discount')) { ?> <p>Discount: <?php the_field('discount'); ?></p> <?php } else { ?> <p>Price: ...


1

Here's what I do to add an upload field to my taxonomy terms, in this example I add it to the built in Posts Categories but you could modify it to add in any taxonomy. Step One - Make sure we're using a enctype on our form: function edit_form_tag( ) { echo ' enctype="multipart/form-data"'; } add_action( 'category_term_edit_form_tag' , 'edit_form_tag' ...



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