Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantHello can help me please?
[email protected]
ParticipantHello some idea for this matter
[email protected]
ParticipantHey Anh great. Thank you very much. I have some question. I have Metabox AIO. how can I update to it version?
[email protected]
ParticipantOk Anh thank you very much. Some temporal solution for it?
[email protected]
ParticipantYes I can set the size it in the image element but I need set it in the background of one element. I mean the background image property for a column for example. Can you understand me?
Please check next gif
http://g.recordit.co/rti2iYVie9.gif[email protected]
ParticipantHello Anh, thank you very much again. I only have one question more.
Finally I will use custom tables, however in the documentation I found the last example to search in the custom tables:
global $wpdb; $ids = $wpdb->get_col( "SELECT ID FROM your_table WHERE field1 = 'value1' OR field2 = 'value2'" ); $query = new WP_Query( [ 'post_type' => 'post', 'post__in' => $id, ] );So you first I should make a query to the custom tables and next you make a second query to wordpress post table passing the ID from first query.
If for example the first query get 5000 records so you pass 5000 ids for the second query?
Do you think taht it is most optimize? I am scare about it and I don't know if is a good idea use metabox to work with big data in database.
Can you recomend me something?
When I use it:$query = new WP_Query( [ 'post_type' => 'post', 'post__in' => $id, ] );I can't imagine one query passing 5000 records the SQL query could be:
where ID = 'ID_1' OR ID = 'ID_2' OR ID = 'ID_3' ....... ID = 'ID_5000'July 8, 2019 at 11:04 AM in reply to: ✅Bug: Color Picker field is showed below the Title field #15283[email protected]
ParticipantHello, now is correct, thank you very much Anh.
July 3, 2019 at 6:23 AM in reply to: ✅Bug: Color Picker field is showed below the Title field #15213[email protected]
ParticipantHello Any news for it?
[email protected]
ParticipantHi Anh, thank you very much for your answer, i am very hapy for your support. Only for confirm. I mean, can't I edit custom fileds in global setings of elementor, please see my image.
I am imgining put in this section the cutom fields created with metabox.io
https://imgur.com/IeraUaw[email protected]
ParticipantSorry I fixed it, was a conflict with other plugin: Real Media, I ubdated it and now work correctly. Thank you Anh
[email protected]
ParticipantMy code is follow:
add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $meta_boxes[] = array ( 'title' => 'Carácteristicas', 'id' => 'caracteristicas', 'post_types' => array( 0 => 'fincas', ), 'context' => 'after_title', 'priority' => 'high', 'autosave' => true, 'fields' => array( array ( 'id' => 'codigo', 'type' => 'text', 'name' => 'Código', 'required' => 1, ), array ( 'id' => 'url', 'type' => 'url', 'name' => 'Video', ), array ( 'id' => 'capacidad', 'type' => 'number', 'name' => 'Capacidad de Personas Máxima', 'required' => 1, ), array ( 'id' => 'camas', 'type' => 'number', 'name' => 'Número de Camas', 'required' => 1, ), array ( 'id' => 'habitaciones', 'type' => 'number', 'name' => 'Número de Habitaciones', ), array ( 'id' => 'galerias', 'type' => 'image_advanced', 'name' => 'Galeria de imágenes', 'image_size' => 'thumbnail', 'max_status' => false, ), ), ); return $meta_boxes; }[email protected]
ParticipantI check it:
https://github.com/wpmetabox/meta-box/commit/2c2e7da9e3cb340edcff2d80069e1fb27f1910a2But doesn't work can you help me please?
[email protected]
ParticipantYes is similar, is possible that you overwrited the commit:
https://github.com/wpmetabox/meta-box/commit/dbf1fa0e96be73b0c6b68e31a2d64ba72455fef3
in the commit:
https://github.com/wpmetabox/meta-box/commit/b76fd9be7861908151bfd2c88e19361d5fd4035fadd_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $meta_boxes[] = array ( 'title' => 'Características V2', 'id' => 'caracteristicas-v2', 'post_types' => array( 0 => 'propiedad', ), 'context' => 'after_title', 'priority' => 'high', 'autosave' => true, 'fields' => array( array ( 'id' => 'codigo', 'type' => 'text', 'name' => 'Código', 'tab' => 'tab_1', ), array ( 'id' => 'ubicacion', 'type' => 'taxonomy', 'name' => 'Ubicación', 'taxonomy' => 'ubicacion', 'field_type' => 'select_tree', 'required' => 1, 'tab' => 'tab_1', ), array ( 'id' => 'precio', 'type' => 'number', 'name' => 'Precio', 'tab' => 'tab_1', ), array ( 'id' => 'tipo_negocio', 'type' => 'taxonomy', 'name' => 'Tipo de negocio', 'taxonomy' => 'tipo-de-negocio', 'field_type' => 'select', 'tab' => 'tab_1', ), array ( 'id' => 'tipo_propiedad', 'type' => 'taxonomy', 'name' => 'Tipo de propiedad', 'taxonomy' => 'tipo-de-propiedad', 'field_type' => 'select', 'tab' => 'tab_1', ), array ( 'id' => 'destacada', 'name' => 'Destacada', 'type' => 'select', 'placeholder' => 'Select an Item', 'options' => array( 1 => 'Si', 2 => 'No', ), 'tab' => 'tab_1', ), array ( 'id' => 'estrato', 'type' => 'text', 'name' => 'Estrato', 'tab' => 'tab_5', ), array ( 'id' => 'admisitracion', 'type' => 'text', 'name' => 'Administración', 'tab' => 'tab_5', ), array ( 'id' => 'avaluo_catastral', 'type' => 'text', 'name' => 'Avalúo Catastral', 'tab' => 'tab_5', ), array ( 'id' => 'predial', 'type' => 'text', 'name' => 'Predial', 'tab' => 'tab_5', ), array ( 'id' => 'total_pisos', 'type' => 'text', 'name' => 'Total de pisos', 'tab' => 'tab_5', ), array ( 'id' => 'numero_niveles', 'type' => 'text', 'name' => 'Número de niveles', 'tab' => 'tab_5', ), array ( 'id' => 'piso_numero', 'type' => 'text', 'name' => 'Piso número', 'tab' => 'tab_5', ), array ( 'id' => 'clase_piso', 'type' => 'text', 'name' => 'Clase de piso', 'tab' => 'tab_5', ), array ( 'id' => 'area_construida', 'type' => 'text', 'name' => 'Área construida', 'tab' => 'tab_5', ), array ( 'id' => 'area_total', 'type' => 'text', 'name' => 'Área total', 'tab' => 'tab_5', ), array ( 'id' => 'ano_construido', 'type' => 'text', 'name' => 'Año construido', 'tab' => 'tab_5', ), array ( 'id' => 'undiad', 'type' => 'text', 'name' => 'Unidad Cerrada', 'tab' => 'tab_5', ), array ( 'id' => 'ascensor', 'type' => 'text', 'name' => 'Ascensor', 'tab' => 'tab_5', ), array ( 'id' => 'garaje', 'type' => 'text', 'name' => 'Garaje', 'tab' => 'tab_5', ), array ( 'id' => 'piscina', 'type' => 'text', 'name' => 'Piscina', 'tab' => 'tab_5', ), array ( 'id' => 'parqueadero', 'type' => 'text', 'name' => 'Parqueadero', 'tab' => 'tab_5', ), array ( 'id' => 'banos', 'type' => 'number', 'name' => 'Baños', 'tab' => 'tab_5', ), array ( 'id' => 'parqueadero_visitantes', 'type' => 'text', 'name' => 'Parqueadero Visitantes', 'tab' => 'tab_5', ), array ( 'id' => 'habitaciones', 'type' => 'number', 'name' => 'Habitaciones', 'tab' => 'tab_5', ), array ( 'id' => 'zona', 'type' => 'text', 'name' => 'Zona', 'tab' => 'tab_5', ), array ( 'id' => 'decripcion', 'name' => 'Descripción de la propiedad', 'type' => 'wysiwyg', 'required' => 1, 'tab' => 'tab_29', ), array ( 'id' => 'sector', 'name' => 'Descripción del sector', 'type' => 'wysiwyg', 'tab' => 'tab_31', ), array ( 'id' => 'galeria', 'type' => 'image_advanced', 'name' => 'Galería de imágenes', 'max_file_uploads' => 20, 'image_size' => 'thumbnail', 'tab' => 'tab_34', ), ), 'tab_style' => 'default', 'tab_wrapper' => true, 'tabs' => array( 'tab_1' => array( 'label' => 'Caracteristicas principales', 'icon' => 'dashicons-admin-generic', ), 'tab_5' => array( 'label' => 'Características secundarias', 'icon' => 'dashicons-admin-tools', ), 'tab_29' => array( 'label' => 'Descripción de la propiedad', 'icon' => 'dashicons-editor-justify', ), 'tab_31' => array( 'label' => 'Descripción del sector', 'icon' => 'dashicons-location', ), 'tab_34' => array( 'label' => 'Imagenes', 'icon' => 'dashicons-camera', ), ), ); return $meta_boxes; }Taxonomies
function ubicaciones_register_taxonomy() { $args = array ( 'label' => esc_html__( 'Ubicaciones', 'propiedades' ), 'labels' => array( 'menu_name' => esc_html__( 'Ubicaciones', 'propiedades' ), 'all_items' => esc_html__( 'Todas las Ubicaciones', 'propiedades' ), 'edit_item' => esc_html__( 'Editar Ubicación', 'propiedades' ), 'view_item' => esc_html__( 'Ver ubicación', 'propiedades' ), 'update_item' => esc_html__( 'Actuailzar Ubicación', 'propiedades' ), 'add_new_item' => esc_html__( 'Agregar nueva ubicación', 'propiedades' ), 'new_item_name' => esc_html__( 'Nueva ubicación', 'propiedades' ), 'parent_item' => esc_html__( 'Ubicación padre', 'propiedades' ), 'parent_item_colon' => esc_html__( 'Ubicación padre:', 'propiedades' ), 'search_items' => esc_html__( 'Buscar ubicaciones', 'propiedades' ), 'popular_items' => esc_html__( 'Ubicaciones populares', 'propiedades' ), 'separate_items_with_commas' => esc_html__( 'Separar ubicaciones con coma', 'propiedades' ), 'add_or_remove_items' => esc_html__( 'Agregar o remover ubicación', 'propiedades' ), 'choose_from_most_used' => esc_html__( 'Elegir las ubicación más usadas', 'propiedades' ), 'not_found' => esc_html__( 'No se encontraron ubicaciones', 'propiedades' ), 'name' => esc_html__( 'Ubicaciones', 'propiedades' ), 'singular_name' => esc_html__( 'Ubicación', 'propiedades' ), ), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'show_in_quick_edit' => true, 'show_admin_column' => true, 'show_in_rest' => false, 'hierarchical' => true, 'query_var' => true, 'sort' => false, 'rewrite_no_front' => false, 'rewrite_hierarchical' => true, 'rewrite' => true, ); register_taxonomy( 'ubicacion', array( 'propiedad' ), $args ); } add_action( 'init', 'ubicaciones_register_taxonomy', 0 );February 7, 2019 at 9:28 PM in reply to: ℹ️Pages do not save changes when activating Meta Box #13233[email protected]
ParticipantAny news about this?
February 7, 2019 at 2:17 AM in reply to: ℹ️Pages do not save changes when activating Meta Box #13224[email protected]
ParticipantHi. Trying to solve this error I have performed the following tests:
1- disable plugins installed on the site
2- update the Meta Box pluginNone of these tests worked for me and I still have the same problem.
-
AuthorPosts