Show post/page into div using function

I’m not sure what ARRAY_A is supposed to be, seems unnecessary unless there’s more info we’re missing. Also, get_post returns an object, not an array. Try this: function fields_after_order_details(){ $my_id = 2731; $post_id_2731 = get_post($my_id); $title = $post_id_2731->post_content; echo ‘<div class=”tandc”>’ . $title . ‘</div>’; }

Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px

Just call woocommerce proceed-to-checkout-button template in woocommerce_before_cart action hook as follows- add_action(‘woocommerce_before_cart’, ‘add_wc_button_proceed_to_checkout’); function add_wc_button_proceed_to_checkout(){ echo ‘<div class=”wc-proceed-to-checkout”>’; wc_get_template( ‘cart/proceed-to-checkout-button.php’ ); echo ‘</div>’; }

WordPress file upload

WordPress has it’s own way of handling file uploads, so it’s best to follow their lead on that. It does do some file validation, but if you want to be restrictive with MIME types I’d keep the code you originally have, Here’s the code that can replace your second block though to actually upload the … Read more