Forum Replies Created
-
AuthorPosts
-
Qu1nt
ParticipantYeah this keeps happening to me as well after almost every update on multiple sites. I have tried resaving permalinks, deactivating all plugins and still the same. I always have to roll back metabox to get it to work for some reasoon.
Qu1nt
ParticipantHi Anh,
How would I attach the background to an existing div in a template in Oxygen builder?
Thanks,
Quint
Qu1nt
ParticipantHi Long,
that was it, I increased from 5000 to 10000 now it seems to be working fine.
Thank you very much for your help.
Quint
Qu1nt
ParticipantHi,
I removed all special characters, same result, I cannot add any more fields or edit anything including the post type.
Qu1nt
ParticipantHi Long,
Below is the code, I tried recreating this on 2 other sites and the same outcome, it will not let me add or update anything.
<?php add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $prefix = ''; $meta_boxes[] = [ 'title' => __( 'Health History Form', 'your-text-domain' ), 'id' => null, 'post_types' => ['health-form'], 'fields' => [ [ 'name' => __( 'PATIENT INFORMATION', 'your-text-domain' ), 'id' => $prefix . 'patient_information', 'type' => 'group', 'fields' => [ [ 'name' => __( 'Last Name', 'your-text-domain' ), 'id' => $prefix . 'last_name', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'First Name', 'your-text-domain' ), 'id' => $prefix . 'first_name', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Date of Birth', 'your-text-domain' ), 'id' => $prefix . 'date_of_birth', 'type' => 'date', 'columns' => 3, ], [ 'name' => __( 'Gender', 'your-text-domain' ), 'id' => $prefix . 'radio_5d2zd5qx8gg', 'type' => 'radio', 'options' => [ 'Male' => __( 'Male', 'your-text-domain' ), 'Female' => __( 'Female', 'your-text-domain' ), 'Other' => __( 'Other', 'your-text-domain' ), ], 'columns' => 3, ], [ 'name' => __( 'Address', 'your-text-domain' ), 'id' => $prefix . 'address', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'City', 'your-text-domain' ), 'id' => $prefix . 'city', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Province', 'your-text-domain' ), 'id' => $prefix . 'province', 'type' => 'select', 'options' => [ 'Alberta' => __( 'Alberta', 'your-text-domain' ), 'British Columbia' => __( 'British Columbia', 'your-text-domain' ), 'Manitoba' => __( 'Manitoba', 'your-text-domain' ), 'New Brunswick' => __( 'New Brunswick', 'your-text-domain' ), 'Newfoundland and Labrador' => __( 'Newfoundland and Labrador', 'your-text-domain' ), 'Northwest Territories' => __( 'Northwest Territories', 'your-text-domain' ), 'Nova Scotia' => __( 'Nova Scotia', 'your-text-domain' ), 'Nunavut' => __( 'Nunavut', 'your-text-domain' ), 'Ontario' => __( 'Ontario', 'your-text-domain' ), 'Prince Edward Island' => __( 'Prince Edward Island', 'your-text-domain' ), 'Quebec' => __( 'Quebec', 'your-text-domain' ), 'Saskatchewan' => __( 'Saskatchewan', 'your-text-domain' ), 'Yukon' => __( 'Yukon', 'your-text-domain' ), ], 'columns' => 3, ], [ 'name' => __( 'Postal Code', 'your-text-domain' ), 'id' => $prefix . 'postal_code', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Home Phone', 'your-text-domain' ), 'id' => $prefix . 'home_phone', 'type' => 'tel', 'columns' => 3, ], [ 'name' => __( 'Cell Phone', 'your-text-domain' ), 'id' => $prefix . 'cell_phone', 'type' => 'tel', 'columns' => 3, ], [ 'name' => __( 'Work Phone', 'your-text-domain' ), 'id' => $prefix . 'work_phone', 'type' => 'tel', 'columns' => 3, ], [ 'name' => __( 'Email', 'your-text-domain' ), 'id' => $prefix . 'email', 'type' => 'email', 'columns' => 3, ], [ 'name' => __( 'Occupation', 'your-text-domain' ), 'id' => $prefix . 'occupation', 'type' => 'text', 'columns' => 3, ], [ 'type' => 'divider', ], [ 'name' => __( 'Primary Care Physician\'s Name', 'your-text-domain' ), 'id' => $prefix . 'primary_care_physician\'s_name', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Phone Number', 'your-text-domain' ), 'id' => $prefix . 'phone_number', 'type' => 'tel', 'columns' => 3, ], [ 'type' => 'divider', ], [ 'name' => __( 'Did a healthcare practitioner refer you for therapy?', 'your-text-domain' ), 'id' => $prefix . 'did_a_healthcare_practitioner_refer_you_for_therapy', 'type' => 'radio', 'options' => [ 'Yes' => __( 'Yes', 'your-text-domain' ), 'No' => __( 'No', 'your-text-domain' ), ], 'columns' => 3, ], [ 'name' => __( 'Practitioner\'s Name', 'your-text-domain' ), 'id' => $prefix . 'practitioner\'s_name', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Practitioner\'s Phone Number', 'your-text-domain' ), 'id' => $prefix . 'practitioner\'s_phone_number', 'type' => 'tel', 'columns' => 3, ], [ 'name' => __( 'Have you received therapy before?', 'your-text-domain' ), 'id' => $prefix . 'have_you_received_therapy_before', 'type' => 'radio', 'options' => [ 'Yes' => __( 'Yes', 'your-text-domain' ), 'No' => __( 'No', 'your-text-domain' ), ], 'columns' => 3, ], ], ], [ 'type' => 'divider', ], [ 'type' => 'divider', ], [ 'name' => __( 'INJURY INFORMATION', 'your-text-domain' ), 'id' => $prefix . 'injury_information', 'type' => 'group', 'fields' => [ [ 'type' => 'divider', ], [ 'name' => __( 'What is the reason you are seeking therapy?', 'your-text-domain' ), 'id' => $prefix . 'what_is_the_reason_you_are_seeking_therapy', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Are you currently seeing another healthcare professional regarding this condition?', 'your-text-domain' ), 'id' => $prefix . 'are_you_currently_seeing_another_healthcare_professional_regarding_this_condition', 'type' => 'radio', 'options' => [ 'Yes' => __( 'Yes', 'your-text-domain' ), 'No' => __( 'No', 'your-text-domain' ), ], 'columns' => 3, ], [ 'name' => __( 'Please indicate the location of any tissue or joint discomfort', 'your-text-domain' ), 'id' => $prefix . 'please_indicate_the_location_of_any_tissue_or_joint_discomfort', 'type' => 'textarea', 'columns' => 3, ], [ 'name' => __( 'Please indicate all the symptoms you\'re currently experiencing', 'your-text-domain' ), 'id' => $prefix . 'please_indicate_all_the_symptoms_you\'re_currently_experiencing', 'type' => 'checkbox_list', 'options' => [ 'Numbness' => __( 'Numbness', 'your-text-domain' ), 'Tingling' => __( 'Tingling', 'your-text-domain' ), 'Pins & Needles' => __( 'Pins & Needles', 'your-text-domain' ), 'Stiffness' => __( 'Stiffness', 'your-text-domain' ), 'Soreness' => __( 'Soreness', 'your-text-domain' ), 'Aching Pain' => __( 'Aching Pain', 'your-text-domain' ), 'Dull Pain' => __( 'Dull Pain', 'your-text-domain' ), 'Burning Pain' => __( 'Burning Pain', 'your-text-domain' ), 'Throbbing Pain' => __( 'Throbbing Pain', 'your-text-domain' ), 'Sharp and/or Shooting Pain' => __( 'Sharp and/or Shooting Pain', 'your-text-domain' ), ], 'inline' => true, 'columns' => 3, ], [ 'name' => __( 'On a scale from 0-10, please rate your current level of pain', 'your-text-domain' ), 'id' => $prefix . 'on_a_scale_from_0-10_please_rate_your_current_level_of_pain', 'type' => 'radio', 'options' => [ __( '0', 'your-text-domain' ), __( '1', 'your-text-domain' ), __( '2', 'your-text-domain' ), __( '3', 'your-text-domain' ), __( '4', 'your-text-domain' ), __( '5', 'your-text-domain' ), __( '6', 'your-text-domain' ), __( '7', 'your-text-domain' ), __( '8', 'your-text-domain' ), __( '9', 'your-text-domain' ), __( '10', 'your-text-domain' ), ], 'columns' => 3, ], [ 'name' => __( 'What makes the pain worse?', 'your-text-domain' ), 'id' => $prefix . 'what_makes_the_pain_worse', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'What makes the pain better?', 'your-text-domain' ), 'id' => $prefix . 'what_makes_the_pain_better', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Injury date if known', 'your-text-domain' ), 'id' => $prefix . 'injury_date_if_known', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Surgery date if any', 'your-text-domain' ), 'id' => $prefix . 'surgery_date_if_any', 'type' => 'text', 'columns' => 3, ], ], ], [ 'type' => 'divider', ], [ 'type' => 'divider', ], [ 'name' => __( 'MEDICAL INFORMATION', 'your-text-domain' ), 'id' => $prefix . 'medical_information', 'type' => 'group', 'fields' => [ [ 'type' => 'heading', 'name' => __( 'Please indicate conditions you are currently experiencing or have experienced in the past:', 'your-text-domain' ), ], ], ], ], ]; return $meta_boxes; }Qu1nt
Participantok this is getting ridiculous, I deleted the fields and recreated new fields, after inputting all the fields I needed, I saved it and everything disappeared completely blank except the title.
September 6, 2021 at 4:16 AM in reply to: ✅Importing JSON file from other site doesn't work correct #30609Qu1nt
ParticipantHi Long,
I am exporting then importing some custom fields and it's not working, I have tried on multiple sites and all i get is the title part edit field group, no custom fields are showing at all.
Qu1nt
ParticipantHi Long,
Yes that's what I did, I checked off create table automatically.
I am also using oxygen if that helps.
Qu1nt
ParticipantHi Long,
I'm not sure what you mean, I just checked off the 'Save data in a custom table' and named it wpml_health_form in the settings of custom fields which I shared in the post above.
Qu1nt
ParticipantHi Long,
Yes I did, It's still giving me "no title"
Qu1nt
ParticipantHi Long,
Below is the code for both.
<?php add_action( 'init', 'your_prefix_register_post_type' ); function your_prefix_register_post_type() { $labels = [ 'name' => esc_html__( 'Health Forms', 'your-textdomain' ), 'singular_name' => esc_html__( 'Health Form', 'your-textdomain' ), 'add_new' => esc_html__( 'Add New', 'your-textdomain' ), 'add_new_item' => esc_html__( 'Add new health form', 'your-textdomain' ), 'edit_item' => esc_html__( 'Edit Health Form', 'your-textdomain' ), 'new_item' => esc_html__( 'New Health Form', 'your-textdomain' ), 'view_item' => esc_html__( 'View Health Form', 'your-textdomain' ), 'view_items' => esc_html__( 'View Health Forms', 'your-textdomain' ), 'search_items' => esc_html__( 'Search Health Forms', 'your-textdomain' ), 'not_found' => esc_html__( 'No health forms found', 'your-textdomain' ), 'not_found_in_trash' => esc_html__( 'No health forms found in Trash', 'your-textdomain' ), 'parent_item_colon' => esc_html__( 'Parent Health Form:', 'your-textdomain' ), 'all_items' => esc_html__( 'All Health Forms', 'your-textdomain' ), 'archives' => esc_html__( 'Health Form Archives', 'your-textdomain' ), 'attributes' => esc_html__( 'Health Form Attributes', 'your-textdomain' ), 'insert_into_item' => esc_html__( 'Insert into health form', 'your-textdomain' ), 'uploaded_to_this_item' => esc_html__( 'Uploaded to this health form', 'your-textdomain' ), 'featured_image' => esc_html__( 'Featured image', 'your-textdomain' ), 'set_featured_image' => esc_html__( 'Set featured image', 'your-textdomain' ), 'remove_featured_image' => esc_html__( 'Remove featured image', 'your-textdomain' ), 'use_featured_image' => esc_html__( 'Use as featured image', 'your-textdomain' ), 'menu_name' => esc_html__( 'Health Forms', 'your-textdomain' ), 'filter_items_list' => esc_html__( 'Filter health forms list', 'your-textdomain' ), 'items_list_navigation' => esc_html__( 'Health forms list navigation', 'your-textdomain' ), 'items_list' => esc_html__( 'Health Forms list', 'your-textdomain' ), 'item_published' => esc_html__( 'Health Form published', 'your-textdomain' ), 'item_published_privately' => esc_html__( 'Health form published privately', 'your-textdomain' ), 'item_reverted_to_draft' => esc_html__( 'Health form reverted to draft', 'your-textdomain' ), 'item_scheduled' => esc_html__( 'Health Form scheduled', 'your-textdomain' ), 'item_updated' => esc_html__( 'Health Form updated', 'your-textdomain' ), 'text_domain' => esc_html__( 'your-textdomain', 'your-textdomain' ), ]; $args = [ 'label' => esc_html__( 'Health Forms', 'your-textdomain' ), 'labels' => $labels, 'description' => '', 'public' => true, 'hierarchical' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'show_in_rest' => true, 'query_var' => true, 'can_export' => true, 'delete_with_user' => false, 'has_archive' => true, 'rest_base' => '', 'show_in_menu' => true, 'menu_icon' => 'dashicons-clipboard', 'menu_position' => 5, 'capability_type' => 'post', 'supports' => ['title'], 'taxonomies' => [], 'rewrite' => [ 'with_front' => false, ], ]; register_post_type( 'health-form', $args ); }<?php add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' ); function your_prefix_function_name( $meta_boxes ) { $prefix = ''; $meta_boxes[] = [ 'title' => __( 'Health Fields', 'your-text-domain' ), 'id' => 'health-fields', 'post_types' => ['health-form'], 'storage_type' => 'custom_table', 'table' => 'wpml_health_form', 'fields' => [ [ 'name' => __( 'Last Name', 'your-text-domain' ), 'id' => $prefix . 'last_name', 'type' => 'text', 'required' => true, 'columns' => 6, ], [ 'name' => __( 'First Name', 'your-text-domain' ), 'id' => $prefix . 'first_name', 'type' => 'text', 'required' => true, 'columns' => 6, 'first_name' => 'title', ], [ 'name' => __( 'Phone Number', 'your-text-domain' ), 'id' => $prefix . 'phone_number', 'type' => 'tel', 'columns' => 6, ], [ 'name' => __( 'Email', 'your-text-domain' ), 'id' => $prefix . 'email', 'type' => 'email', 'columns' => 6, ], [ 'name' => __( 'Address', 'your-text-domain' ), 'id' => $prefix . 'address', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'City', 'your-text-domain' ), 'id' => $prefix . 'city', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Province', 'your-text-domain' ), 'id' => $prefix . 'province', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Postal Code', 'your-text-domain' ), 'id' => $prefix . 'postal_code', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Occupation', 'your-text-domain' ), 'id' => $prefix . 'occupation', 'type' => 'text', 'columns' => 3, ], [ 'name' => __( 'Date of Birth', 'your-text-domain' ), 'id' => $prefix . 'date_of_birth', 'type' => 'date', 'columns' => 3, ], [ 'type' => 'divider', ], [ 'name' => __( 'Have you received massage therapy before', 'your-text-domain' ), 'id' => $prefix . 'received_massage_therapy', 'type' => 'radio', 'options' => [ 'Yes' => __( 'Yes', 'your-text-domain' ), 'No' => __( 'No', 'your-text-domain' ), ], 'columns' => 6, ], [ 'name' => __( 'Did a healthcare practitioner refer you for massage therapy?', 'your-text-domain' ), 'id' => $prefix . 'practitioner_referral', 'type' => 'radio', 'options' => [ 'Yes' => __( 'Yes', 'your-text-domain' ), 'No' => __( 'No', 'your-text-domain' ), ], 'columns' => 6, ], [ 'name' => __( 'Please provide their name', 'your-text-domain' ), 'id' => $prefix . 'referall_name', 'type' => 'text', 'columns' => 6, 'visible' => [ 'when' => [['practitioner_referral', '=', 'Yes']], 'relation' => 'and', ], ], [ 'name' => __( 'Please provide their address', 'your-text-domain' ), 'id' => $prefix . 'referall_address', 'type' => 'text', 'columns' => 6, 'visible' => [ 'when' => [['practitioner_referral', '=', 'Yes']], 'relation' => 'and', ], ], [ 'name' => __( 'Please indicate conditions you are experiencing or have experienced', 'your-text-domain' ), 'id' => $prefix . 'conditions', 'type' => 'group', 'fields' => [ [ 'name' => __( 'Cardiovascular', 'your-text-domain' ), 'id' => $prefix . 'cardiovascular', 'type' => 'checkbox_list', 'options' => [ 'High Blood Pressure' => __( 'High Blood Pressure', 'your-text-domain' ), 'Low Blood Pressure' => __( 'Low Blood Pressure', 'your-text-domain' ), 'Chronic Congestive Heart Failure' => __( 'Chronic Congestive Heart Failure', 'your-text-domain' ), 'Heart Attack' => __( 'Heart Attack', 'your-text-domain' ), 'Phlebitis/Varicose Veins' => __( 'Phlebitis/Varicose Veins', 'your-text-domain' ), 'Stroke/CVA' => __( 'Stroke/CVA', 'your-text-domain' ), 'Pacemaker or Similar Device' => __( 'Pacemaker or Similar Device', 'your-text-domain' ), 'Heart Disease' => __( 'Heart Disease', 'your-text-domain' ), ], 'inline' => true, 'before' => __( ' ', 'your-text-domain' ), ], [ 'name' => __( 'Family history of any of the above?', 'your-text-domain' ), 'id' => $prefix . 'cardiovascular_history', 'type' => 'radio', 'options' => [ 'Yes' => __( 'Yes', 'your-text-domain' ), 'No' => __( 'No', 'your-text-domain' ), ], ], [ 'name' => __( 'Respiratory', 'your-text-domain' ), 'id' => $prefix . 'respiratory', 'type' => 'checkbox_list', 'options' => [ 'Chronic Cough' => __( 'Chronic Cough', 'your-text-domain' ), 'Shortness of Breath' => __( 'Shortness of Breath', 'your-text-domain' ), 'Bronchitis' => __( 'Bronchitis', 'your-text-domain' ), 'Asthma' => __( 'Asthma', 'your-text-domain' ), 'Emphysema' => __( 'Emphysema', 'your-text-domain' ), ], 'inline' => true, 'before' => __( ' ', 'your-text-domain' ), ], [ 'name' => __( 'Family history of any of the above?', 'your-text-domain' ), 'id' => $prefix . 'respiratory_history', 'type' => 'radio', 'options' => [ 'Yes' => __( 'Yes', 'your-text-domain' ), 'No' => __( 'No', 'your-text-domain' ), ], ], [ 'name' => __( 'Infections', 'your-text-domain' ), 'id' => $prefix . 'infections', 'type' => 'checkbox_list', 'options' => [ 'Hepatitis' => __( 'Hepatitis', 'your-text-domain' ), 'Skin Conditions' => __( 'Skin Conditions', 'your-text-domain' ), 'TB' => __( 'TB', 'your-text-domain' ), 'HIV' => __( 'HIV', 'your-text-domain' ), 'Herpes' => __( 'Herpes', 'your-text-domain' ), ], 'inline' => true, 'before' => __( ' ', 'your-text-domain' ), ], ], ], ], ]; return $meta_boxes; }Qu1nt
ParticipantHi Long,
It's still not working, still comes up as 'no title'
Qu1nt
ParticipantHi Long,
Yeah I'm lost, not sure what I'm doing wrong. Would it be possible for you to show me how to do this?
Thanks,
Quint
Qu1nt
ParticipantSo I figured it out, when I remove the post_fields from the shortcode the conditional logic stops working, how do I remove title and content and keep conditional logic?
I've tried replacing with date, revisions and others but still doesnt work.
Qu1nt
ParticipantGetting this error - uncaught referenceerror wp is not defined
-
AuthorPosts