Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 245 total)
  • Author
    Posts
  • in reply to: Elementor group warning #37957
    YasmineYasmine
    Participant

    That's great thank you. I found one more issue. When I make a meta box group section with a photo. I get a real error that stops my single post template from fully functioning. Here is the group field code that caused this new error:

    'name'   => __( 'Add Co-Author', 'your-text-domain' ),
                    'id'     => $prefix . 'add_co_author',
                    'type'   => 'group',
                    'clone'  => true,
                    'fields' => [
                        [
                            'name'  => __( 'Co-author Full Name', 'your-text-domain' ),
                            'id'    => $prefix . 'co-author_full_name',
                            'type'  => 'text',
                            'clone' => true,
                        ],
                        [
                            'name'  => __( 'Co-author Email', 'your-text-domain' ),
                            'id'    => $prefix . 'co-author_email',
                            'type'  => 'email',
                            'clone' => true,
                        ],
                        [
                            'name'    => __( 'Co-author - Lead_YN', 'your-text-domain' ),
                            'id'      => $prefix . 'co-author_lead_yn',
                            'type'    => 'radio',
                            'options' => [
                                'y' => __( 'Lead author', 'your-text-domain' ),
                                'n' => __( 'Not lead author', 'your-text-domain' ),
                            ],
                            'clone'   => true,
                            'inline'  => false,
                        ],
    in reply to: Link is an array #37956
    YasmineYasmine
    Participant

    Of course:

    
                   'name'       => __( 'Add Resources', 'your-text-domain' ),
                    'id'         => $prefix . 'resources_group',
                    'type'       => 'group',
                    'clone'      => true,
                    'sort_clone' => true,
                    'max_clone'  => 3,
                    'fields'     => [
                        [
                            'name' => __( 'Resource Name', 'your-text-domain' ),
                            'id'   => $prefix . 'name_of_resource',
                            'type' => 'text',
                        ],
                        [
                            'name'    => __( 'Resource Details', 'your-text-domain' ),
                            'id'      => $prefix . 'resource_details',
                            'type'    => 'textarea',
                            'tooltip' => [
                                'icon'     => '',
                                'position' => 'right',
                            ],
                        ],
                        [ 
    
                            'name'    => __( 'Resource Link', 'your-text-domain' ),
                            'id'      => $prefix . 'resource_link',
                            'type'    => 'url',
                            'tooltip' => [
                                'icon'     => '',
                                'position' => 'right',
            
                            ],
                        ],
    
    in reply to: Elementor group warning #37567
    YasmineYasmine
    Participant

    I still get the error, but the error did not cause the issue.

    in reply to: Making a user listing #37466
    YasmineYasmine
    Participant

    Ok, worked it out the code was missing a speech mark

    function libs_import() {
               wp_enqueue_style( 'datatable-style', 'https://cdn.jsdelivr.net/npm/[email protected]/media/css/jquery.dataTables.min.css', '1.10.18', true );
               wp_enqueue_script( 'datatable-script', 'https://cdn.jsdelivr.net/npm/[email protected]/media/js/jquery.dataTables.min.js', array( 'jquery' ) );
    wp_enqueue_script('/*here*/ theme-script', get_template_directory_uri() . '/js/script.js' );
    } 
    add_action( 'wp_enqueue_scripts', 'libs_import' );
    in reply to: Help ! All my fields gone ! #37443
    YasmineYasmine
    Participant

    Hi - this just happened to me too. All of my fields are gone.

    in reply to: CPT stuck as "Post" type #37429
    YasmineYasmine
    Participant

    *back (not stuck)

    in reply to: CPT stuck as "Post" type #37427
    YasmineYasmine
    Participant

    Hi Long,

    Adding the prefix got the data stuck. But it didn't fix not being able to use the file field in a field group - without it breaking!

    Many thanks,
    Yasmine

    in reply to: CPT stuck as "Post" type #37414
    YasmineYasmine
    Participant

    ...However after finally managing to change my post type back to my CPT, I am still unable to get my data back on the frontend. Everything is now saved in custom fields, rather than in my CPT. Changing the post type did not fix it.

    in reply to: CPT stuck as "Post" type #37412
    YasmineYasmine
    Participant

    Hi Long - just an update to this. I found the issue. I was trying to adding a file field within a group field. After trying to update my custom fields, it automatically saves to a 'post' post type. I tried with file upload and file. Then I tried with file advanced and the whole thing crashed

    in reply to: CPT stuck as "Post" type #37411
    YasmineYasmine
    Participant

    I will contact them. But just wondering, have you ever come across the meta box custom field type getting stuck and being unable to change - and have any idea how to fix. I only ask as I disabled every plugin and the problem was still there!

    in reply to: Outputting user value in array #37393
    YasmineYasmine
    Participant

    Got it working using sprintf - but it turned out shouldn't have been displaying as an array in first place (a third party plugin was modifying it). So all sorted. Thanks again.

    in reply to: Moving meta box group #37392
    YasmineYasmine
    Participant

    I did a little experiment, but was hoping was missing trick. Thank you for clarifying!

    in reply to: Outputting user value in array #37382
    YasmineYasmine
    Participant

    Actually - it is still not working.

    On an admin account it outputs: string(1) "P"

    And for a non-admin role it outputs: string(9) "Professor"

    Can't seem to just get the "professor" part!

    in reply to: Outputting user value in array #37381
    YasmineYasmine
    Participant

    Thanks Long!

    in reply to: Elementor Groups - not looping #37380
    YasmineYasmine
    Participant

    Fixed

Viewing 15 posts - 136 through 150 (of 245 total)