Can i categorise my meta box?

The code you posted in your question is very very very incomplete, anyway I will try to give you an answer. You can define as many meta box as you need and put inside each meta box the fields you want. For example: add_action( ‘add_meta_boxes’, ‘my_meta_boxes’ ); function my_meta_boxes(){ //We define the two metaboxes I … Read more

Metabox Input Not saving

Look at this code: update_post_meta( $post_id, ‘owl_mb_content’, strip_tags( $_POST[‘owl_mb_content_one’] ) ); update_post_meta( $post_id, ‘owl_mb_title’, strip_tags( $_POST[‘owl_mb_title_one’] ) ); update_post_meta( $post_id, ‘owl_mb_content’, strip_tags( $_POST[‘owl_mb_content_two’] ) ); update_post_meta( $post_id, ‘owl_mb_title’, strip_tags( $_POST[‘owl_mb_title_two’] ) ); update_post_meta( $post_id, ‘owl_mb_content’, strip_tags( $_POST[‘owl_mb_content_three’] ) ); update_post_meta( $post_id, ‘owl_mb_title’, strip_tags( $_POST[‘owl_mb_title_three’] ) ); The second value is the key. Each update overwrites … Read more

Issues with Saving Dynamic Metabox

I too have come across this strange issue, I am not sure why $post_id doesn’t contain the post id. Please try the below snippet and this would work Use the global $post and use $post->ID in update_post_meta add_action( ‘save_post’, ‘save_TodoList’ ); /* When the post is saved, saves our custom data */ function save_TodoList() { … Read more

Echo order box (in pages)

First you need to get the value from attributes, option page or meta value; if you have an option page you need to call that value: $valuerequired = get_option(‘ctech_valuefromoptionpage’); ctech is the short theme name, and if the attributes field is a meta value $price = get_post_meta($post->ID, ‘price’, true); then you can echo the value … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)