Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 3,708 total)
  • Author
    Posts
  • in reply to: Using MB Blocks in Theme Templates #42157
    Anh TranAnh Tran
    Keymaster

    Dashes are not used by Twig, so we need to change them to underscores. Or you can get via the attribute method in Twig:

    https://twig.symfony.com/doc/3.x/functions/attribute.html

    The field group ID is the slug of the field group, and uses dashes by default. It’s rarely used in MB Blocks or MB Views, so it’s ok to keep it as it is.

    in reply to: Using MB Blocks in Theme Templates #42154
    Anh TranAnh Tran
    Keymaster

    The problem is how to refer to the field in Twig. The correct code that I tried is:

    {% set p = mb.get_post( post_id ) %}
    <p>
      <strong>Job title:</strong> {{ p.job_title }}
    </p>

    Here is the screencast: https://monosnap.com/file/Fh9dBfRYNYj0AZ4lYG3XwlGzcFXL97

    in reply to: Using MB Blocks in Theme Templates #42135
    Anh TranAnh Tran
    Keymaster

    Hi David,

    Can you please try changing the dash in the authors-website to underscore, e.g. authors_website? Twig doesn't allow dashes in the variable name.

    in reply to: Technical issue with this extension #42063
    Anh TranAnh Tran
    Keymaster

    Hi Scott,

    We've fixed this issue. Please re-download the plugin and try again.

    in reply to: Download older version #42062
    Anh TranAnh Tran
    Keymaster

    Hi guys,

    We've fixed this issue. Please re-download the plugin and try again.

    in reply to: How to access older versions of extensions #42061
    Anh TranAnh Tran
    Keymaster

    Hi Frode,

    We've fixed this issue with the v1.21. Please re-download the plugin and try again.

    in reply to: Update to 1.21.0 Broke site #42060
    Anh TranAnh Tran
    Keymaster

    Hi guys,

    We've fixed this issue. Please re-download the plugin and try again.

    in reply to: WP All Import/Export Add-on #41457
    Anh TranAnh Tran
    Keymaster

    Hi guys,

    We're very sorry for this problem. It's not because we don't want to do that. It's beyond our technical capability. We tried several times in the past to make the integration. However, it ended up with a same conclusion that we couldn't make it without modifying WPAI's code, which we're not familiar with.

    So, we asked the WPAI team for help and they agreed to do the integration for Meta Box. That's the best thing we can inform you at the moment.

    Best regards,
    Anh

    in reply to: composer/installers version #40742
    Anh TranAnh Tran
    Keymaster

    Hi Viktor,

    No problem. I've updated the composer/installers version to "~1.0 || ~2.0".

    in reply to: Malware Warnings #40589
    Anh TranAnh Tran
    Keymaster

    Hi,

    This is the JS file, compiled from our source, so the warning about a PHP security is not accurate. I've checked with Sucuri and looks like it requires a paid plan to run the scan. Can you please drop us a message with a temporary admin account to check this issue?

    in reply to: Include Metabox in free plugin #40269
    Anh TranAnh Tran
    Keymaster

    No, you can't include our extensions in your free products. Please see the Terms and Conditions for more details.

    in reply to: unpkg.com #40138
    Anh TranAnh Tran
    Keymaster

    Hi Aaron,

    The purpose of using a CDN is to share the libs across extensions. Currently tooltip is used in the Tooltip and Builder extensions (backend). We'll move them to local in the next version.

    in reply to: Failure after update to mb-core 1.4.9 #40031
    Anh TranAnh Tran
    Keymaster

    Hi guys, can you please drop me a message with a temporary admin account and FTP details to debug and check the issue? Currently, I can't replicate this bug on our environments. Thanks.

    in reply to: Meta Box error on saving post #40019
    Anh TranAnh Tran
    Keymaster

    This bug was fixed in the latest Meta Box version. In my test, it was triggered when removing all images and re-save the post. Is that the same thing happened to you?

    Anh TranAnh Tran
    Keymaster

    Looks like when you use Composer, after installing packages, you don't include the Composer's autoload.php file.

    There are 2 workarounds for this case:

    1. In your code, just add this line somewhere:

    require 'path/to/vendor/autoload.php';
    

    (Note that this is the vendor/autoload.php generated by Composer, it's in the root folder. It's not the vendor folder in Meta Box).

    This way, when you install anything with Composer (maybe a common PHP lib), autoload will works for all packages, not just Meta Box.

    2. Or replace Meta Box's Composer package wpmetabox/meta-box with WP Packagist. Using this method, you'll pull all the content from wordpress.org/plugins/meta-box/ into your code, and thus - will contain full vendor folder. And you don't have to modify your code.

Viewing 15 posts - 46 through 60 (of 3,708 total)