Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,901 through 3,915 (of 3,958 total)
  • Author
    Posts
  • in reply to: Google Map is Not Rendering in Secondary Tabs #728
    Anh TranAnh Tran
    Keymaster

    Do you mean the marker sometimes does not appear or the map? I think with latest version of Tabs extension, the map appears all the time :), but please let me know for sure. I will check the marker, too.

    PS: My pleasure to answer to your question at wp.org! Glad that it helped you to know the new way to register meta boxes!

    Anh TranAnh Tran
    Keymaster

    Hi,

    To display meta value in single.php or in any place in the frontend, you just need to use the helper function (rwmb_meta). There is no difference using it for a website using WPML and not using WPML.

    More info: WPML stores the value of meta fields for translated post (and the translated post itself) separately in the database. We can consider it as a totally different post with full data comes with it.

    in reply to: Google Map is Not Rendering in Secondary Tabs #719
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback!

    I've just updated the Tabs plugin, now it works with Google Maps in hidden tabs. Please update it and let me know.

    I will check the question on wp.org and answer it there.

    Thank you

    in reply to: Google Map is Not Rendering in Secondary Tabs #714
    Anh TranAnh Tran
    Keymaster

    Can you try resizing browser and see if the map is loaded?

    If yes, then it is a known issue with Google maps which doesn't load when the DOM element is hidden. I will add a JS callback for that if this is the case.

    in reply to: Radio button with image #707
    Anh TranAnh Tran
    Keymaster

    Hi, umtang41.

    Thanks for purchasing and installing MB Builder. To create a Image Select instead of Radio Buttons for selection. You can use Image Select field located under Advanced section. You'll see a field editor like so:

    http://prntscr.com/6m9cz9

    On the Value text field, enter the Value which you want to save to post meta and on the Image URL, specify the URL which you want to represent the radio.

    Best regards.

    Tan Nguyen

    Anh TranAnh Tran
    Keymaster

    Thanks for your idea. It's a good solution for this purpose. I will think about it, maybe I will add hooks which allows us to do that. I will add more details and let's see how it goes.

    Anh TranAnh Tran
    Keymaster

    Hi,

    This is an good question about how the plugin store post meta in the database. The short answer for your question is "no" and here is why:

    When the "clone" feature wasn't born, the plugin stores all meta data in the data base in a WordPress-compatible way, e.g. if field has single value, it will be saved in single row of postmeta table; if field has multiple values (set by 'multiple' => true), each value will be saved in single row of that table. This way you can use add_post_meta or update_post_meta field post's custom fields to retrieve meta value.

    But when the "clone" feature is born, it's confusing to store each cloned value in a single row of postmeta table. Because we don't know these are values of clones, or values of the field with multiple = true. In order to make it work for all field types and for consistency, I decided to store cloned values in an array and store that array in single row in the postmeta table.

    So, we can't use WP_Query to query based on value of a cloned field directly. I think your solution with foreach loop is a good solution for now.

    in reply to: Change clone buttontext #694
    Anh TranAnh Tran
    Keymaster

    The version 4.4.3 is now available on wordpress.org. Please update and let me know if you find any bugs.

    Thanks!

    in reply to: Change clone buttontext #692
    Anh TranAnh Tran
    Keymaster

    Ah, you're right. I forgot to tell you that the latest version of Meta Box on Github has correct code which supports valid arguments for the filter. I will push it to wp.org so you can update the plugin now.

    in reply to: Change clone buttontext #689
    Anh TranAnh Tran
    Keymaster

    Version 1.0.1 now supports changing clone button text. Please update the plugin and follow this guide.

    Please let me know if you need any help.
    Best regards!

    in reply to: Number of clones #682
    Anh TranAnh Tran
    Keymaster

    Your idea is interesting. At the moment, this feature has not been inplemented. I think it would be done with Javascript attached on the click event and update the Add more button class or disable attribute. I will think more about that and will imform you when it's done.

    Anh TranAnh Tran
    Keymaster

    Yes, that's right. When you want to register fields with type "group", you need to activate MB Group extension, otherwise it will show the error like you saw.

    in reply to: Change clone buttontext #653
    Anh TranAnh Tran
    Keymaster

    At the moment, the text for clone button is fixed. I will add a filter for you to change it in next version.

    in reply to: Hide Tab #626
    Anh TranAnh Tran
    Keymaster

    Unfortunately this is not possible at the moment. I'd suggest setting up another meta box for page template and use Include/Exclude extension to show/hide it.

    in reply to: Include Group plug-in in theme files with Roots #577
    Anh TranAnh Tran
    Keymaster

    Oh, I see. The problem is you missed the fields parameter for group field. You have to do like this:

    'fields' => array(
        array(
            'id' => 'group',
            'type' => 'group',
            'fields' => array( // you missed this parameter for group
                array(...),
                array(...),
            ),
        ),
    ),
Viewing 15 posts - 3,901 through 3,915 (of 3,958 total)