Plugin – Combine Meta Box Input Fields into single saveble record

Use something like this after you foreach loop. In this example link is saved in new meta field. You can overwrite document_overview_document-link, but then you will get combined html code as link value when open your document in editor. foreach { … } if ( isset( $_POST[ ‘document-link’ ] ) ) { $html=”<a class=”btn btn-outline-info … Read more

Custom Field created in add_meta_boxes reappearing itself again in the default Custom Metabox

Prepending your metakey with an underscore _ makes it private and prevents the data from showing up in the default metabox. So instead of this, update_post_meta( $post_id,’product_desc_en’, wp_kses_post( $_POST[‘product_desc_en’] ) ); do this, update_post_meta( $post_id,’_product_desc_en’, wp_kses_post( $_POST[‘product_desc_en’] ) ); and your custom meta shouldn’t show up in the default metabox. P.s. And of course, when … Read more

Need Help Fixing My Iframes [closed]

You need to have an iterator that counts. I’m only including the foreach loops: <?php $data_i = 1; // set the iterator ?> <?php foreach ( $repeatable_fields as $field ) { ?> <li> <a href=”https://wordpress.stackexchange.com/questions/361395/javascript:void(0)” class=”buttosn” data-server=”<?php echo $data_i; ?>”><!– <– put the iterator here –> <i class=”fa fa-play-circle”></i> <?php if($field[‘name’] != ”) echo esc_attr( … Read more