Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 211 through 225 (of 3,702 total)
  • Author
    Posts
  • in reply to: URGENT Problem when installing plugin #18778
    Anh TranAnh Tran
    Keymaster

    I got it. The LearnPress team included an old version of Meta Box in their plugin and causes the problem. I'll contact them to fix this.

    In the meantime, I've issued the refund for you.

    in reply to: post Excerpt #18767
    Anh TranAnh Tran
    Keymaster

    @B: You don't need to set custom attributes, all you need to do in MB Builder is set the field ID to content or excerpt, like this: https://imgur.com/998hlgP. Nothing more.

    And if you can, add this code to your theme's functions.php file. Or you can install the Code Snippet plugin (free on .org) and add the following code:

    add_filter( 'rwmb_content_field_meta', function() {
        $post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT );
        return get_post_field( 'post_content', $post_id );
    } );
    add_filter( 'rwmb_content_value', '__return_empty_string' );
    
    add_filter( 'rwmb_excerpt_field_meta', function() {
        $post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT );
        return get_post_field( 'post_excerpt', $post_id );
    } );
    add_filter( 'rwmb_excerpt_value', '__return_empty_string' );
    in reply to: post Excerpt #18766
    Anh TranAnh Tran
    Keymaster

    @hartsook:

    #1. The thing with excerpt/content and which is chosen to display is probably another thing from WordPress in general, not BB or Meta Box. I think it's better to put it here for clarity:

    If you display post excerpt: in BB, you might want to use text/html module and connect to post excerpt (not Meta Box field), then it will does the following thing:

    • If the post excerpt is not empty -> take it
    • If the post excerpt is empty -> generate excerpt from the post content

    In both case, the excerpt length will be still applied, e.g. the text displayed is truncated to the specific length of your choice.

    It's the default behavior in WordPress in general. And it's confusing for a lot of people!

    If you display post content: then only text in the post content is get and displayed. Nothing is confusing here.

    #2. The other thing is using the field connector in BB

    When we do all the things in the previous replies, Meta Box think these fields are for post content and post excerpt and doesn't store any value in the custom fields. Therefore, you must connect the text/html module in BB to post content/post excerpt instead of Meta Box Fields.

    This is what you already did, and correctly. I just make it clearer!

    in reply to: post Excerpt #18741
    Anh TranAnh Tran
    Keymaster

    I made a short video to explain things here:

    https://www.loom.com/share/0b651f654cce47aa82419cd91631e100

    And here is the code for both content and excerpt:

    https://pastebin.com/1tL0bNhW

    Anh TranAnh Tran
    Keymaster

    Hi, sorry for this issue. I've updated the docs and added to the plugin changelog.

    in reply to: post Excerpt #18733
    Anh TranAnh Tran
    Keymaster

    Hi, we have a tutorial for doing this here. It's for post content, but it also works for post excerpt if you change the field ID in the tutorial to excerpt.

    Here is the code: https://pastebin.com/t3tBWcG6

    Anh TranAnh Tran
    Keymaster

    If you use fields like file_advanced or image_advanced, then they requires access to Media Library to upload files, which requires users to log in and have proper capability.

    In this case, you can use only file or image field to upload files.

    in reply to: No output printed when the meta value is 0 #18708
    Anh TranAnh Tran
    Keymaster

    Hi Sofyan,

    Thanks for your feedback and help. I've fixed that in the version 1.5.0.

    Anh TranAnh Tran
    Keymaster

    Hi Mrl,

    The change was added in the Meta Box AIO v1.11.0. Can you please clear the browser cache and try again?

    in reply to: Issue with Post field type and "select_advanced" #18693
    Anh TranAnh Tran
    Keymaster

    Hi John,

    Can you share the full code of the meta box and settings page to test? I can't replicate the bug on my end :(.

    in reply to: How to the video field for group type? #18692
    Anh TranAnh Tran
    Keymaster

    Hi Daniel,

    Currently, MB Views allows you to display videos one by one, e.g. not in a playlist. To do that, please select the video field from the inserter panel.

    To display all videos in a playlist, please use this Twig snippet below:

    {% set videos = mb.rwmb_meta( 'video_field_id', '', post.ID ) %}
    {% set video_ids = mb.implode( ',', mb.wp_list_pluck( videos, 'ID' ) ) %}
    {{ mb.wp_playlist_shortcode( {ids: video_ids, type: 'video'} ) }}
    in reply to: Open Street Map not updating the address field #18691
    Anh TranAnh Tran
    Keymaster

    Hi,

    When moving the marker on the map, only map location is updated. The address is not updated. This is the designed behavior.

    In addition, the “Find address” button below the map is NOT displayed at all. No JS conflicts/errors at all.

    Thanks for your feedback. We decided to remove the "Find address" button, since it's confusing to many users (the input with autocomplete already works and they don't understand the purpose of the button).

    in reply to: Alpha Channel in Background Field? #18690
    Anh TranAnh Tran
    Keymaster

    Hi William,

    I've just added support for alpha channel in the background field. It will be available in the next version.

    in reply to: jQuery Validate still validating fields that hidden #18669
    Anh TranAnh Tran
    Keymaster

    Hi Sofyan,

    Thanks a lot for your help! I've merged your PR!

    in reply to: storing javascript in text area #18666
    Anh TranAnh Tran
    Keymaster

    That's awesome! Thanks for sharing with other people!

Viewing 15 posts - 211 through 225 (of 3,702 total)