Home Forums Plugin Support WP User Frontend Pro Can't create albums

This topic is: not resolved

This topic contains 19 replies, has 2 voices, and was last updated by  towhid 3 years, 10 months ago.

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #44144

    towhid
    Participant
    Post count: 4505

    Hello Alexander,

    I have checked thoroughly “klein” theme and come out a solution finally.

    The theme you are using is creating conflict somehow. Try the following code in WordPress default theme – Twenty Thirteen, Twenty Fourteen, Twenty Fifteen.

    function wpuf_woo_product_gallery( $post_id ) {
        if ( isset( $_POST['wpuf_files']['_product_image'] ) ) {
    
            $images = get_post_meta($post_id, '_product_image' );
            update_post_meta( $post_id, '_product_image_gallery', implode(',', $images) );
        }
    }
    
    add_action( 'wpuf_add_post_after_insert', 'wpuf_woo_product_gallery' );
    add_action( 'wpuf_edit_post_after_update', 'wpuf_woo_product_gallery' );

    Thank you ๐Ÿ™‚

    #44150

    Alexander
    Member
    Post count: 12

    So you mean I can't use the klein theme? And why should I add that code to Twenty Thirteen, Twenty Fourteen, Twenty Fifteen? Is it so you can test?

    #44236

    towhid
    Participant
    Post count: 4505

    Hello Alexander,

    There is no problem using the klein theme. But conflict is creating only this particular task. I have test several way to made this code work for you. But When I had pasted this code in Twenty fifteen this is working as usual and I see gallery image is below the product. Did you check this? If not please check yourself and see the result.

    Thank you.

    #44271

    Alexander
    Member
    Post count: 12

    I tested and it works just fine with the Twenty fifteen theme but not the klein theme.
    But you can't see why it's conflicting? Should I contact the author? If so, what should I ask for?

    #44356

    towhid
    Participant
    Post count: 4505

    Hello Alexander,

    We did not find any exact reason yet. So I can not tell you where the problem lies. We always do any development work with compatible for the WordPress default theme.

    What I can say is there could be a .js compatibility issue. You can contact with theme author to investigate if they are still using any backdated script.

    Thanks.

Viewing 5 posts - 16 through 20 (of 20 total)

The topic ‘Can't create albums’ is closed to new replies.