Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i Transfeer database the Meta Post groups lost its data #98

Open
hamdan-mahran opened this issue Oct 7, 2014 · 0 comments
Open

Comments

@hamdan-mahran
Copy link

Hi Mr Wpalchemy
i have abig problim and it is :
When i Transfeer database the groups lost its data, and i found it in the tables in database
but its not show in the new site backend and frontend.
these group code is :

//===========> gallery-spec.php
$custom_posts_gallery = new WPAlchemy_MetaBox(array
(
'id' => 'gallery_custom_meta',
'title' => 'Gallery',
'template' => get_stylesheet_directory() . '/theme-admin/metaboxes/arwen/inc/gallery-meta.php',
'types' => array('post'),
'mode' => WPALCHEMY_MODE_EXTRACT,
));
//============>gallery-meta.php

<!--================================-->
<div class="portfolio_meta_con active_meta_tab" id="slider_tab">
<?php while($mb->have_fields_and_multi('gallery')): ?>
<?php $mb->the_group_open(); ?>
<div class="gallery_meta_block_container">
    <i class="shandle"><?php _e('Handle', 'it_arwen_theme') ?></i>
    <a href="#" class="dodelete button"><?php _e('Delete', 'it_arwen_theme') ?></a>
            
    <div class="have_button">
        <?php $mb->the_field('imgid'); ?>
        <label for="<?php $mb->the_name(); ?>"><?php _e('Choose Image', 'it_arwen_theme') ?></label>
        <?php $wpalchemy_media_access->setGroupName('img-n'. $mb->get_the_index())->setInsertButtonLabel('Insert'); ?>
    
        <?php echo $wpalchemy_media_access->getField(array('name' => $mb->get_the_name(), 'value' => $mb->get_the_value(), 'class' => 'arwen_mb_image_img_id', 'type' => 'hidden')); ?>
        <?php echo $wpalchemy_media_access->getButton(); ?>
        <span class="arwen_gallery_img_src"><img class="get_img_url" alt="" /></span>
        
        <?php $mb->the_field('img_src'); ?>
        <input type="hidden" id="<?php $mb->the_name(); ?>" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>" class="arwen_img_src_input" style="visibility: hidden; position: absolute;">
    </div>

    <?php $mb->the_field('img_caption'); ?>
    <label for="<?php $mb->the_name(); ?>"><?php _e('Description', 'it_arwen_theme') ?></label>
    <div>
        <textarea id="<?php $mb->the_name(); ?>" name="<?php $mb->the_name(); ?>"><?php $mb->the_value(); ?></textarea>
    </div>
    
    <?php $mb->the_field('url'); ?>
    <label for="<?php $mb->the_name(); ?>"><?php _e('URL', 'it_arwen_theme') ?></label>
    <div>
        <input type="text" id="<?php $mb->the_name(); ?>" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/>
        <span class="description"><?php _e('leave blank and the image will open in lightbox', 'theme'); ?></span>
    </div>
    
    <?php $mb->the_field('target'); ?>
    <label for="<?php $mb->the_name(); ?>"><?php _e('Link Open In', 'it_arwen_theme') ?></label>
    <div>
    <select name="<?php $mb->the_name(); ?>">
        <option value=""<?php $mb->the_select_state(''); ?>><?php _e('Same Window', 'it_arwen_theme'); ?></option>
        <option value="_blank"<?php $mb->the_select_state('_blank'); ?>><?php _e('New Window', 'it_arwen_theme'); ?></option>
    </select>
    </div>
</div>
<?php $mb->the_group_close(); ?>
<?php endwhile; ?>

    <p style="margin-bottom:15px;" class="take_meta_repeat">
        <a href="#" class="docopy-gallery copy_bt button">
            <span><?php _e('Add Slide', 'it_arwen_theme') ?></span>
            <i class="ab-icon"></i>
        </a>
    </p>
</div>   

//==================================>
please give me feedback for that :)
Thanks Very Much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant