Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,816 through 1,830 (of 3,958 total)
  • Author
    Posts
  • in reply to: After the Beaver add-on, any chance of an Elementor one? #11280
    Anh TranAnh Tran
    Keymaster

    Hello guys,

    Sorry for the delay. We've completed the integration plugin and it's available on Github. We're submitting it to wordpress.org.

    The code is also sent and verified by Elementor's developer Ohad Raz, so I think it's ready to use.

    Please try it and let me know if you need anything. Details, docs and video are coming soon.

    in reply to: Select taxonomy field is not working from version 4.15.4 #11269
    Anh TranAnh Tran
    Keymaster

    Thanks a lot! I have refactored the code and forgot to keep that check. It's now has been fixed.

    in reply to: Show translated content #11267
    Anh TranAnh Tran
    Keymaster

    Hi Ale,

    This is a great question!

    Firstly, I think you should translate the field labels only. Translating the values makes it's very hard to control what is saved in the database. And the data in the database should not be user's concern, it's for developers only.

    Secondly, if you use rwmb_meta, you'll get the field value stored in the database. It's static and can't be changed. That's why you don't see the translated text. I'd suggest using rwmb_the_value to get the option labels, which meaningful to users and translatable. See the field documentation for details.

    Finally, make sure you load the text domain for the code of meta boxes.

    in reply to: Group items not showing up #11266
    Anh TranAnh Tran
    Keymaster

    Can you send me an temporary admin account to check the bug? Please send via contact form.

    Anh TranAnh Tran
    Keymaster

    Hi Philip,

    Please add show parameter to the meta box settings as follows:

    function testmeta( $meta_boxes ) {
        $prefix = 'swed-';
    
        $meta_boxes[] = array(
            'id' => 'vendoroptions',
            'title' => esc_html__( 'Vendors', 'metabox-online-generator' ),
            'post_types' => array( 'page' ),
            'context' => 'after_title',
            'priority' => 'high',
            'autosave' => false,
            'show' => array(
                'template' => array( 'this-template.php' ),
            ),
            'fields' => array(),
       );
       return $meta_boxes;
    } );

    For more details, please see the documentation.

    in reply to: Select taxonomy field is not working from version 4.15.4 #11264
    Anh TranAnh Tran
    Keymaster

    Hello,

    What do you mean "if it has no taxonomy registered"? Does the field not have a registered taxonomy?

    in reply to: Group items not showing up #11255
    Anh TranAnh Tran
    Keymaster

    I don't see anything wrong with your code. Are the fields not showing up in the backend?

    Anh TranAnh Tran
    Keymaster

    Hello,

    It's relatively simple. You just need to:

    • Send a POST request to the endpoint to update a post .
    • In the array of parameter sent to the server, add a field meta_box to store all custom fields' values, including groups.
    • Put array of group's value into the meta_box field. Remember to format the group value properly, e.g. an array of sub-field's value. In short, send the data in the format when you click the Publish button in the frontend.

    Then the plugin will handle the rest and update the post with correct value.

    in reply to: Woocommerce product category conditional logic #11253
    Anh TranAnh Tran
    Keymaster

    Hi Dan,

    Just answered you on the Meta Box group on Facebook. I'm posting here for reference:

    For custom taxonomy, please use the syntax described in the docs. It's more complicated than the category and tags (caused they're built in and we can define a specific syntax for them).

    in reply to: How to create metabox fields in widgets? #11252
    Anh TranAnh Tran
    Keymaster

    Hello,

    Unfortunately, it's not possible at the moment. Although the widgets look similar in term of form fields, its API is very different. And there's no solution for Meta Box yet.

    in reply to: Metabox 4.15.4 (switch) #11226
    Anh TranAnh Tran
    Keymaster

    Hi,

    The std is what you want. But it's applied (e.g. show) only when the meta box hasn't saved. So, if you have saved the meta box once, the field won't show the std value. You can check that with new post, where the meta box hasn't been saved and you'll see the std value is showing.

    in reply to: Display fields with confirmation notice #11225
    Anh TranAnh Tran
    Keymaster

    Hi Joe,

    Yes, it's available in the AIO plugin as well. We'll work on the Frontend Submission next week.

    Anh

    in reply to: Filter the orderby of entries retrieved from database #11218
    Anh TranAnh Tran
    Keymaster

    Hi Juanita,

    You can overwrite the orderby parameter with this code:

    add_filter( 'posts_clauses', function( $clauses, $query ) {
        $relationship = $query->get( 'relationship' );
        if ( ! $relationship || 'REL_ID' != $relationship['id'] ) ) {
            return $clauses;
        }
        $clauses['orderby'] = 'ORDER BY post_date DESC';
        return $clauses;
    }, 99, 2 );

    It overwrites the orderby in the query. You might change it to fit your needs.

    Anh TranAnh Tran
    Keymaster

    Yes, the city is just a text field and you can use [rwmb_meta] shortcode to show it:

    [rwmb_meta meta_key="city"]

    For details, please see the documentation.

    in reply to: Advanced image #11216
    Anh TranAnh Tran
    Keymaster

    Hello,

    I've just tested and the image_size parameter works. Here is a screenshot:

    https://imgur.elightup.com/9O6rSZB.png

    Just a note: when the size specified in image_size parameter is not available, the full size is used. That might be your case.

Viewing 15 posts - 1,816 through 1,830 (of 3,958 total)