Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
drleilu
/
www
/
wp-content
/
themes
/
luxia
/
inc
/
post-meta-option
/
✏️
Editing: meta-box-config.php
<?php /** * Post metaboxes configuration * * @package luxia. */ add_filter( 'rwmb_meta_boxes', 'luxiazc_register_meta_boxes' ); function luxiazc_register_meta_boxes( $meta_boxes ) { $prefix = 'luxiazc_'; $meta_boxes[] = array( 'id' => 'Quote', 'title' => esc_html__( 'Post Quote', 'luxia' ), 'post_types' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => esc_html__( 'Quote', 'luxia' ), 'desc' => esc_html__( 'Quote Text Add Here', 'luxia' ), 'id' => $prefix . 'post_quote', 'type' => 'textarea', ), ) ); $meta_boxes[] = array( 'id' => 'Link', 'title' => esc_html__( 'Post Link', 'luxia' ), 'post_types' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => esc_html__( 'Link', 'luxia' ), 'desc' => esc_html__( 'Link Add Here', 'luxia' ), 'id' => $prefix . 'post_link', 'type' => 'text', ), ) ); $meta_boxes[] = array( 'id' => 'blog-sections', 'title' => esc_html__( 'Post Gallery', 'luxia' ), 'post_types' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => esc_html__( 'Gallery', 'luxia' ), 'desc' => '', 'id' => $prefix . 'post_gallery', 'type' => 'image_advanced', // Delete file from Media Library when remove it from post meta? // Note: it might affect other posts if you use same file for multiple posts 'force_delete' => false, // Maximum file uploads. 'max_file_uploads' => 10, // Do not show how many files uploaded/remaining. 'max_status' => 'false', // Image size that displays in the edit page. 'image_size' => 'thumbnail', ), ) ); $meta_boxes[] = array( 'id' => 'video-sections', 'title' => esc_html__( 'Post Video', 'luxia' ), 'post_types' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => esc_html__( 'Video', 'luxia' ), 'desc' => esc_html__( 'Youtube & Viemo Url Add Here', 'luxia' ), 'id' => $prefix . 'post_video', 'type' => 'text', // Input size 'size' => 30, ), ) ); $meta_boxes[] = array( 'id' => 'audio-sections', 'title' => esc_html__( 'Post Audio', 'luxia' ), 'post_types' => 'post', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => esc_html__( 'Audio', 'luxia' ), 'desc' => esc_html__( 'Soundcloud Embed Ifram Add Here', 'luxia' ), 'id' => $prefix . 'post_audio', 'type' => 'text', // Input size 'size' => 30, ), ) ); $meta_boxes[] = array( 'id' => 'Banner', 'title' => esc_html__( 'Banner Img', 'luxia' ), 'post_types' => 'portfolio', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => esc_html__( 'Banner Img', 'luxia' ), 'desc' => esc_html__( 'Banner Img Text Here', 'luxia' ), 'id' => $prefix . 'post_banner', 'type' => 'image_advanced', ), ) ); $meta_boxes[] = array( 'id' => 'team-postions-sections', 'title' => esc_html__( 'Team Post', 'luxia' ), 'post_types' => 'team', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => esc_html__( 'Team Post', 'luxia' ), 'desc' => esc_html__( 'Text Add Here', 'luxia' ), 'id' => $prefix . 'post_team_postions', 'type' => 'text', // Input size 'size' => 30, ), ) ); $meta_boxes[] = array( 'id' => 'team-social-sections', 'title' => esc_html__( 'Team Social Icons', 'luxia' ), 'post_types' => 'team', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => esc_html__( 'Team Social', 'luxia' ), 'desc' => esc_html__( 'Text Add Here', 'luxia' ), 'id' => $prefix . 'post_social', 'type' => 'textarea', // Input size 'size' => 50, ), ) ); // Add more meta boxes if you want // $meta_boxes[] = ... return $meta_boxes; }
💾 Save
❌ Cancel