Remove entire [$key] from array stored in custom field using Ajax – unset($array[$key]); not working

Currently you can not unset key because you can not find proper key from array. The issue is that you did $stamp = array($_POST[‘stamp’]); as array which is wrong. you have to remove array() from $stamp, so which look like $stamp = $_POST[‘stamp’];. then you can search value in column from array and unset it. … Read more

Find a way to retrive data updated through metabox plugin to web page

So finally I found a way to do that. Here is the code. page-contact.php <!– Contact Info –> <div class=”contact-info col-md-4 col-sm-4 margin-top-20 padding-left-20″> <label class=”contact-label pull-left width-wide”>Contact Info</label> <p><strong>IT’S SHOWTIME TOWING</strong><br /><br /> <!–Phone: <a href=”https://wordpress.stackexchange.com/questions/355497/tel:0450749863″>0450749863</a><br /><br /> –> Phone: <a href=”https://wordpress.stackexchange.com/questions/355497/tel:0450749863″><?php echo get_post_meta( $post->ID, ‘telNo’, true );?></a><br /><br /> <!–Email: <a href=”mailto:[email protected]”>[email protected]</a><br /><br … Read more

Where does this field get its value?

That clearly is a plugin field of “Advanced Custom Fields”. The function: the_field(); is one of the utility functions of the plugin. The purpose of “Advanced Custom Fields” is to enable users with less coding-knowledge to add custom fields to a theme/template. So, in order to reverse engineer the whole thing, you propably need to … Read more

Adding Product Name on Admin Panel Order list and User’s My-Account Order List

Add this code to your functions.php this will add an extra column to the listing table with Product name. Like 1 x Netflix Premium. If multiple that will be visible too. add_filter(‘manage_edit-shop_order_columns’, ‘_order_items_column’ ); function _order_items_column( $order_columns ) { $order_columns[‘order_products’] = “Product Name”; return $order_columns; } add_action( ‘manage_shop_order_posts_custom_column’ , ‘_order_items_column_cnt’ ); function _order_items_column_cnt( $colname ) … Read more

How to add custom color fields to the category edit page?

To add custom fields and save/update meta data to terms, you basically need to use these action hooks. custom fields html for new term {$taxonomy}_add_form_fields save custom field data for new term, get data from $_POST created_{$taxonomy} custom fields html for existing term {$taxonomy}_edit_form_fields save custom field data for existing term, get data from $_POST … Read more