Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter sonyapereira

    (@sonyapereira)

    it looks like the issue is after you upgrade the last version, I fixed going to every single 360 tour deactivated the mouse on advance, saved it and activate it again and them it start to work again,

    Thread Starter sonyapereira

    (@sonyapereira)

    thanks @threadi it works…

    Thread Starter sonyapereira

    (@sonyapereira)

    thanks @threadi it works…

    Thread Starter sonyapereira

    (@sonyapereira)

    thanks @threadi for the answer, but not sure where to I change the lines I don’t have that lines on my meta-box PHP file, is this in a specific place or file that I need to make the update?

    Thread Starter sonyapereira

    (@sonyapereira)

    I’m using meta-box creating a php file below is a sample of my code for custom fields for pages but I also use meta-box for custom post-type

    <?php
    
    add_action( 'add_meta_boxes', 'add_common_meta_box' );
    
    function add_common_meta_box() {
      global $post;
      add_meta_box( 'common_id', 'Pages Custom Meta Box', 'common_meta_box_callback', 'page', 'normal', 'high' );
    }
    
    function common_meta_box_callback() {
      global $post;
      echo '<input type="hidden" name="common_noncename" id="common_noncename" value="' . wp_create_nonce( plugin_basename( __FILE__ ) ) . '" />';
      $single_image = get_post_meta( $post->ID, 'single_image', true );
      $header_slider = get_post_meta( $post->ID, 'header_slider', true );
      $content_single_image = get_post_meta( $post->ID, 'content_single_image', true );
      $maincontent_title = get_post_meta( $post->ID, 'maincontent_title', true );
      $pagebuttontext = get_post_meta( $post->ID, 'pagebuttontext', true );
      $pagebuttonurl = get_post_meta( $post->ID, 'pagebuttonurl', true );
      $pagebuttonurltitle = get_post_meta( $post->ID, 'pagebuttonurltitle', true );
      ?>
      <div class="cc-wrapper clear">
        <div class="cc-container">
          <label for="maincontent_title">H1 - Main Title</label>
          <input type="text" name="maincontent_title" value="<?php echo $maincontent_title; ?>" class="input widefat" />
          <br><br>
        </div>
        <div class="cc-container">
          <label for="single_image">Main Image - Single Image</label>
          <a id="single_image" class="button meta-button">Add Main Image</a>
          <input id="single_image_box" type="text" name="single_image" value="<?php echo $single_image; ?>" class="input widefat" />
          <a class="remove-upload" href="#">Remove Image</a>
          <br><br>
        </div>
        <div class="cc-container">
          <label for="header_slider">Header Slider - First Create the slider on Slider Revolution</label>
          <input type="text" name="header_slider" value="<?php echo $header_slider; ?>" class="input widefat" />
          <br><br>
        </div>
    
        <div class="cc-container">
          <label for="content_single_image">Content Image - Single Image</label>
          <a id="content_single_image" class="button meta-button">Add Main Image</a>
          <input id="content_single_image_box" type="text" name="content_single_image" value="<?php echo $content_single_image; ?>" class="input widefat" />
          <a class="remove-upload" href="#">Remove Image</a>
          <br><br>
        </div>
        <div class="cc-container">
          <label for="pagebuttontext">Type the Button Label</label>
          <input type="text" name="pagebuttontext" value="<?php echo $pagebuttontext; ?>" class="input widefat" />
          <br><br>
        </div>
        <div class="cc-container">
          <label for="pagebuttonurl">Type the Button url link</label>
          <input type="text" name="pagebuttonurl" value="<?php echo $pagebuttonurl; ?>" class="input widefat" />
          <br><br>
        </div>
        <div class="cc-container">
          <label for="pagebuttonurltitle">Type the Button url link Title Tag (ADA)</label>
          <input type="text" name="pagebuttonurltitle" value="<?php echo $pagebuttonurltitle; ?>" class="input widefat" />
          <br><br>
        </div>
      </div>
    
      <?php
    
      wp_register_script( 'media-uploader', get_stylesheet_directory_uri() . '/includes/php/meta-boxes/meta-uploader.js', array( 'jquery' ), '5.5.0', true );
      wp_enqueue_script( 'media-uploader' );
      wp_enqueue_script( 'media-upload' );
      wp_enqueue_script( 'thickbox' );
      wp_enqueue_style( 'thickbox' );
    
    }
    
    add_action( 'save_post', 'save_common_info', 1, 2 );
    function save_common_info( $post_id, $post ) {
    
      if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;
      if( !isset( $_POST[ 'common_noncename' ] ) ) return;
      if( !current_user_can( 'edit_post' ) ) return;
      $common_meta[ 'single_image' ] = $_POST[ 'single_image' ];
      $common_meta[ 'header_slider' ] = $_POST[ 'header_slider' ];
      $common_meta[ 'content_single_image' ] = $_POST[ 'content_single_image' ];
      $common_meta[ 'maincontent_title' ] = $_POST[ 'maincontent_title' ];
      $common_meta[ 'pagebuttontext' ] = $_POST[ 'pagebuttontext' ];
      $common_meta[ 'pagebuttonurl' ] = $_POST[ 'pagebuttonurl' ];
      $common_meta[ 'pagebuttonurltitle' ] = $_POST[ 'pagebuttonurltitle' ];
      foreach( $common_meta as $key => $value ) {
        if( $post->post_type == 'revision' ) return;
        $value = implode( ',', (array)$value );
        if( get_post_meta( $post->ID, $key, false ) ) {
          update_post_meta( $post->ID, $key, $value );
        } else {
          add_post_meta( $post->ID, $key, $value );
        }
        if( !$value ) delete_post_meta( $post->ID, $key );
      }
    
    }
    Thread Starter sonyapereira

    (@sonyapereira)

    here is a copy of my php code

    <?php
    add_action( 'add_meta_boxes', 'add_tertiary_meta_box' );
    
    function add_tertiary_meta_box() {
      global $post;
      $page_file = get_post_meta( $post->ID, '_wp_page_template', true );
    
      add_meta_box( 'tertiary_id', 'tertiary Meta Box', 'tertiary_meta_box_callback', 'tertiary-post', 'normal', 'high' );
    
    }
    
    function tertiary_meta_box_callback(){
      global $post;
      echo '<input type="hidden" name="tertiary_noncename" id="branding_slider_noncename" value="' . wp_create_nonce( plugin_basename( __FILE__ ) ) . '" />';
    
      $tertiarysingle_image = get_post_meta( $post->ID, 'tertiarysingle_image', true );
      $tertiary_singleslide = get_post_meta( $post->ID, 'tertiary_singleslide', true );
      $tertiarybuttontext = get_post_meta( $post->ID, 'tertiarybuttontext', true );
      $tertiarybuttontitle = get_post_meta( $post->ID, 'tertiarybuttontitle', true );
      $tertiarybuttonurl = get_post_meta( $post->ID, 'tertiarybuttonurl', true );
      $tertiarysubtitle = get_post_meta( $post->ID, 'tertiarysubtitle', true );
      $tertiarysmalltext = get_post_meta( $post->ID, 'tertiarysmalltext', true );
      ?>
      <div class="cc-wrapper clear">
        <div class="cc-container">
          <label for="tertiarysubtitle">Type H2 Title</label>
          <input type="text" name="tertiarysubtitle" value="<?php echo $tertiarysubtitle; ?>" class="input widefat" />
          <br><br>
        </div>
    
        <div class="cc-container">
          <label for="tertiarysmalltext">Text Below Title</label>
          <input type="text" name="tertiarysmalltext" value="<?php echo $tertiarysmalltext; ?>" class="input widefat" />
          <br><br>
        </div>
    
        <div class="cc-container">
          <label for="single_image">Single Image</label>
          <a id="single_image" class="button meta-button">Add Big Image</a>
          <input id="tertiarysingle_image_box" type="text" name="tertiarysingle_image" value="<?php echo $tertiarysingle_image; ?>" class="input widefat" />
          <a class="remove-upload" href="#">Remove Image</a>
          <br><br>
        </div>
    
        <div class="cc-container">
          <label for="tertiary_singleslide">Single Slider code</label>
          <input type="text" name="tertiary_singleslide" value="<?php echo $tertiary_singleslide; ?>" class="input widefat" />
          <br><br>
        </div>
        <div class="cc-container">
          <label for="tertiarybuttontext">Type the Button Label</label>
          <input type="text" name="tertiarybuttontext" value="<?php echo $tertiarybuttontext; ?>" class="input widefat" />
          <br><br>
        </div>
        <div class="cc-container">
          <label for="tertiarybuttontitle">Type the Button link title</label>
          <input type="text" name="tertiarybuttontitle" value="<?php echo $tertiarybuttontitle; ?>" class="input widefat" />
          <br><br>
        </div>
        <div class="cc-container">
          <label for="tertiarybuttonurl">Type the Button url link</label>
          <input type="text" name="tertiarybuttonurl" value="<?php echo $tertiarybuttonurl; ?>" class="input widefat" />
          <br><br>
        </div>
      </div>
    
      <?php
    
      wp_register_script( 'media-uploader', get_stylesheet_directory_uri() . '/includes/php/meta-boxes/meta-uploader.js', array( 'jquery' ), '5.5.0', true );
      wp_enqueue_script( 'media-uploader' );
      wp_enqueue_script( 'media-upload' );
      wp_enqueue_script( 'thickbox' );
      wp_enqueue_style( 'thickbox' );
    
    }
    
    add_action( 'save_post', 'save_tertiary_info', 1, 2 );
    function save_tertiary_info( $post_id, $post ) {
    
      if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return;
      if( !isset( $_POST[ 'tertiary_noncename' ] ) ) return;
      if( !current_user_can( 'edit_post' ) ) return;
    
      $tertiary_meta[ 'tertiarysingle_image' ] = $_POST[ 'tertiarysingle_image' ];
      $tertiary_meta[ 'tertiary_singleslide' ] = $_POST[ 'tertiary_singleslide' ];
      $tertiary_meta[ 'tertiarybuttontext' ] = $_POST[ 'tertiarybuttontext' ];
      $tertiary_meta[ 'tertiarybuttontitle' ] = $_POST[ 'tertiarybuttontitle' ];
      $tertiary_meta[ 'tertiarybuttonurl' ] = $_POST[ 'tertiarybuttonurl' ];
      $tertiary_meta[ 'tertiarysubtitle' ] = $_POST[ 'tertiarysubtitle' ];
      $tertiary_meta[ 'tertiarysmalltext' ] = $_POST[ 'tertiarysmalltext' ];
      foreach( $tertiary_meta as $key => $value ) {
        if( $post->post_type == 'revision' ) return;
        $value = implode( ',', (array)$value );
        if( get_post_meta( $post->ID, $key, false ) ) {
          update_post_meta( $post->ID, $key, $value );
        } else {
          add_post_meta( $post->ID, $key, $value );
        }
        if( !$value ) delete_post_meta( $post->ID, $key );
      }
    
    }
    Thread Starter sonyapereira

    (@sonyapereira)

    this is the code from style
    html :where(img) {
    height: auto;
    max-width: 100%;
    }

    que plugin voce esta usando? esta nova atualizacao esta dando um montao de problemas.
    Obrigada pela dica,

    Is anyone having issue with the plugin and wordpress 5.5, I upgraded the wordpress and now whne I tried to add new row on the settings everything is broken, and the rows disappeared, I put back the wordpress 5.4.2 and plugins is working fine again, but I like to have my wordpress 5.5 back, any updates on the plugin to work fine on wordpress 5.5
    thank you for your time.
    S.

    please let me know if someone had the same issue and how to solved it.

    hi I have some issue after I upgrade the wordpress to 4.9

    when I make the test it says

    Test result
    Unable to connect with TLS encryption

    but on the website that I have 4.8.1 is working fine.

Viewing 11 replies - 1 through 11 (of 11 total)