• Really good plugin, but it seems after the last update there’s an error with enqueue scripts order and we get “$(…).select2 is not a function” in console.log.

    If you face the issue you can fix that by changing the enqueue script function order as follows:
    In admin/agp-admin.php, find the lines (currently in: 400, 401):
    wp_enqueue_script( ‘agp-admin’, plugin_dir_url( __FILE__ ) . ‘js/admin.js’,array( ‘jquery’ ), $this->version, true );
    wp_enqueue_script( ‘select2’, plugin_dir_url( __FILE__ ) . ‘js/select2.min.js’, array( ‘jquery’ ), $this->version, false );

    and change the order to:
    wp_enqueue_script( ‘select2’, plugin_dir_url( __FILE__ ) . ‘js/select2.min.js’, array( ‘jquery’ ), $this->version, false );
    wp_enqueue_script( ‘agp-admin’, plugin_dir_url( __FILE__ ) . ‘js/admin.js’,array( ‘jquery’ ), $this->version, true );

    This will fix the error, but be careful for the updates (in case for the creator not having fixed that in later updates).

    Using Woodmart template.

    Great work though!

  • The topic ‘[ISSUE] Converting old posts/pages’ is closed to new replies.