Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Build a shortcode from the metabox.io metaboxes
- function metabox_shortcode() {
- ob_start();
- $post_id = 18;
- global $prefix;
- $account_page_student_title = rwmb_meta("{$prefix}account_page_student_title", OBJECT, $post_id);
- $account_page_student_desc = rwmb_meta("{$prefix}account_page_student_desc", OBJECT, $post_id);
- ?>
- <h2><?php echo $account_page_student_title; ?></h2>
- <div><?php echo $account_page_student_desc; ?></div>
- <?php
- $account_page_student = ob_get_clean();
- return $account_page_student;
- }
- add_shortcode('student_info', 'metabox_shortcode');
Add Comment
Please, Sign In to add comment