Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • in reply to: Custom fields won't save (again...) #44015
    JasonJason
    Participant

    I shared my site credentials via the contact form.

    in reply to: Custom fields won't save (again...) #44014
    JasonJason
    Participant

    I'm having this same problem.

    When I update the Metabox custom field values, they will not save.

    I tried uninstalling all my plugins, and even tried changing the theme, but I still can not save values to Metabox custom fields.

    I know this did work on this website a couple months ago, but since updates it has stopped working. I wonder if it is a problem with the database, or the Metabox plugin.

    I don't know what else to try.

    in reply to: Metabox and GraphQL #42390
    JasonJason
    Participant

    Yes. Please consider supporting WPGraphQL.

    in reply to: Enqueue custom script or style when View is present #35754
    JasonJason
    Participant

    It is possible to enqueue an asset when a short code is present in a post, as you can see in this example: https://developer.wordpress.org/reference/functions/has_shortcode/#comment-747

    There should be a way to enqueue some script when some post uses some shortcode.

    in reply to: Enqueue custom script or style when View is present #35734
    JasonJason
    Participant

    I know I can write my own customs CSS there. I want to enqueue assets that are already registered. This is common in WordPress plug-ins and themes.

    As you can see from this blog post, it is recommended as a best practice.
    https://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/

    in reply to: add attributes to mb views shortcode #29203
    JasonJason
    Participant

    I would also like this feature.

    in reply to: Remove Unused Images From Media Library #26582
    JasonJason
    Participant

    Thank you for your help. Also, I found this plugin that automatically deletes attachments when a post is deleted. I'm having success with this plugin.
    https://wordpress.org/plugins/autoremove-attachments/

    in reply to: Validation does not work for fields in group #22307
    JasonJason
    Participant

    I'm also having this problem. I would like to validate fields inside a group.

    
    function register_application_meta_boxes( $meta_boxes ) {
        $prefix = '';
        $meta_boxes[] = array (
            'title' => esc_html__( 'Job Application Form', 'zri-domain' ),
            'id' => 'job-application-form',
            'post_types' => array(
                0 => 'job-application',
            ),
            'context' => 'normal',
            'priority' => 'high',
            'fields' => array(
                array (
                    'id' => $prefix . 'first-name',
                    'type' => 'text',
                    'name' => esc_html__( 'First Name', 'zri-domain' ),
                    'admin_columns' => array(
                        'position' => 'replace title',
                        'title' => 'First Name',
                    ),
                ),
                array (
                    'id' => $prefix . 'experience',
                    'type' => 'group',
                    'name' => esc_html__( 'Employment History', 'zri-domain' ),
                    'fields' => array(
                        array (
                            'id' => $prefix . 'start-date',
                            'type' => 'date',
                            'name' => esc_html__( 'Start Date', 'zri-domain' ),
                            'js_options' => array(
                                'dateFormat'      => 'mm/dd/yy',
                            ),
                        ),
                        array (
                            'id' => $prefix . 'end-date',
                            'type' => 'date',
                            'name' => esc_html__( 'End Date', 'zri-domain' ),
                            'js_options' => array(
                                'dateFormat'      => 'mm/dd/yy',
                            ),
                        )
                    ),
                    'clone' => 1,
                    'default_state' => 'expanded',
                    'add_button' => esc_html__( '+ Add Employment', 'zri-domain' ),
                    'collapsible' => true,
                    'group_title' => 'Employment {#}',
                )
            ),
            'validation' => array(
                'rules'  => array(
                    'experience' => array(
                        'start-date' => array(
                            'required'  => true,
                            'date' => true
                        ),
                        'end-date' => array(
                            'required'  => true,
                            'date' => true
                        )
                    )
                ),
            )
        );
        return $meta_boxes;
    }
    
    in reply to: Advanced File Field now working on WP engine #20432
    JasonJason
    Participant

    Is there a way to upload the files to google drive, instead of the WP media library?

    in reply to: Advanced File Field now working on WP engine #20427
    JasonJason
    Participant

    Also, is there a way to secure the PDF files that are uploaded. So, the PDF files are not indexed by search engines. And only WordPress administrators can download the PDF files.

    in reply to: Loop through taxonomy parent, and child terms #20331
    JasonJason
    Participant

    This worked! Thank you very much!

    in reply to: Custom post type query with twig, post link #19921
    JasonJason
    Participant

    Thank you! That works!

    in reply to: Custom post type query with twig, post link #19881
    JasonJason
    Participant

    Now I'm not able to get the thumbnail url. Here is my code. Could you help me?

    
    {% set args = { post_type: "project", posts_per_page: 6 } %}
    {% set posts = mb.get_posts( args ) %}
    {% for post in posts %}
    <a class="swiper-slide bg-moon-gray brand-secondary link" href="{{ mb.get_permalink( post.ID ) }}"
        style="background-image:url({{ post.thumbnail.thumbnail.url }})"
    >
        <span class="pt6 pb5 mt5 b">{{ post.post_title }}</span>
    </a>
    {% endfor %}
    
    in reply to: Custom post type query with twig, post link #19880
    JasonJason
    Participant

    That works! Thank you!

    in reply to: No validation in Ajax front-end submission #19474
    JasonJason
    Participant

    The Validation feature is working for me! Thank you!

    Is there a way to use Validation in the custom form builder?

Viewing 15 posts - 1 through 15 (of 20 total)