How to Publish WP original Source metabox value on front-end webpage

get_post_meta is returning an array. Apparently, the plugin is saving _original_source as an array. I don’t know what that array looks like but instead of echo do print_r($original_source); and you get something that looks like: Array ( [a] => apple [b] => banana ) You can then do something like echo $original_source[‘a’] to print “apple”.

Problem for recover and save metaboxes

Your code: add_action(‘admin_menu’, ‘reaction_buttons_meta_box2’); Use ‘add_meta_boxes’ to add meta boxes. It fires in the wp-admin/edit-form-advanced.php file and passes the $post object. The ‘admin_menu’ action fires much more often. add_action( ‘add_meta_boxes’, ‘reaction_buttons_meta_box2’ ); Your code: function reaction_buttons_meta2() { global $post; echo $_POST[‘reaction_buttons_off2’]; There is nothing in $_POST when the the edit page loads. You can test … Read more

How to callback custom field text

Your text is already in the array $m_slider_custom, from this line: $m_slider_custom = get_post_custom($post->ID); If you just want the specific key feat_music you can use get_post_meta(): echo get_post_meta( $post->ID, ‘feat_music’, true ); Another, unrelated thing- I suggest spending some time with the Codex and cleaning up your URLs and paths. For example, this: get_option(‘siteurl’) . … Read more

header specific meta box result detect url

global $post; $header_meta = get_post_meta($post->ID, ‘page-header-meta’, true); if( isset( $header_meta ) ) { echo ‘<h1>’ . $header_meta . ‘</h1>’; } else { echo ‘<h1>Knowledgebase</h1>’; } What this portion of code does is it checks the ‘page-header-meta’ value according to the page being displayed. IF your parent page has the metavalue set then the header will … Read more

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