Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,706 through 3,720 (of 3,958 total)
  • Author
    Posts
  • in reply to: Show meta box data on theme #1697
    Anh TranAnh Tran
    Keymaster

    Hi qbangla,

    To display data on frontend, simply follow this guide:

    https://metabox.io/docs/get-meta-value/

    Btw, in your case, Brands_and_Products is a meta box, not holds any value, you can only get value of your field ids. For example:

    
    // Brand
    echo rwmb_meta( 'brand' );
    
    // Samsumg Products
    echo rwmb_meta( 'Samsung_products' );
    
    // ...
    

    Regards

    Tan Nguyen

    in reply to: Hide fields on multiple parent pages & hiding groups #1684
    Anh TranAnh Tran
    Keymaster

    Hi bro,

    To hide a field from one of these parent pages, try in operator instead of equal. Equal means parent id should be 31 AND 35 AND 37. in means parent id in one of these values. So please change to:

    'hidden' => array('parent_id', 'in', array(31,35,37))

    About the bug when you hide groups, thank you for reporting, we're going to release new patch for that annoying bug.

    Best regards

    Tan Nguyen

    in reply to: Dutch language #1672
    Anh TranAnh Tran
    Keymaster

    I was trying to debug this and it seems fine. Here is the screenshot of "file" field, where the text is translated (I'm not sure if it's correct):

    http://prntscr.com/8y6e35

    Maybe the problem comes from untranslated texts where you see them in English. Can you please check with "file" field?

    In the case of untranslated texts, it would be great if you can contribute translation for the plugin at https://translate.wordpress.org/projects/wp-plugins/meta-box.

    in reply to: relation => 'AND' is not working. #1669
    Anh TranAnh Tran
    Keymaster

    Hi,

    It looks like there is a bug with the condition 'AND', I will fix it and update asap.

    in reply to: Add custom fields to MB Builder #1648
    Anh TranAnh Tran
    Keymaster

    Hi Akhimien,

    Thanks for downloading MB Builder, you can migrate MB Builder with any custom field that you want. In your case, just create a meta box with a textarea (or text field) which have id is wprss_item_permalink. Like this example:

    http://prnt.sc/8wmvku

    Best regards
    Tan Nguyen

    in reply to: Dutch language #1645
    Anh TranAnh Tran
    Keymaster

    Hmm, in the version 4.6, I changed the way the plugin load translations (from translate.wordpress.org and fallback to local .mo files). In my test with Vietnamese, it was ok. Let me check it again.

    in reply to: update (to 1.0.2) available, but fails to install #1639
    Anh TranAnh Tran
    Keymaster

    Thanks, Piet. Any chance to run the update again?

    in reply to: Image uploads not working #1636
    Anh TranAnh Tran
    Keymaster

    Hi,
    We've just noticed about this issue recently (https://github.com/rilwis/meta-box/issues/678) and we're working on this. Please wait.

    Thanks

    in reply to: update (to 1.0.2) available, but fails to install #1635
    Anh TranAnh Tran
    Keymaster

    Can you please try updating again? Sometimes it's because of the connection between your websites and metabox.io. I've just tested updating on my localhost and it works.

    If the error still exists, can you please give me the full error message?

    Thanks.

    in reply to: Displaying Image as Background #1634
    Anh TranAnh Tran
    Keymaster

    The problem is you're using single quote twice (for style attribute and for url in background), that makes the HTML invalid. You can omit the quote for url, like this:

    <?php 
    $images = rwmb_meta( 'meta-about-image', 'type=image' );
    foreach ( $images as $image )
    {
        echo "<a href='#' style='background: url({$image['full_url']});'></a>";
    }
    ?>
    in reply to: color picker not properly aligned in Group #1625
    Anh TranAnh Tran
    Keymaster

    Hi Piet,
    New version of the Meta Box was released yesterday. Please try it ๐Ÿ™‚

    in reply to: Global content with metabox/sharing content between pages #1622
    Anh TranAnh Tran
    Keymaster

    It's in beta phase. I'm testing it to make it compatible with Meta Box 4.6. I will inform you when it's done.

    in reply to: Global content with metabox/sharing content between pages #1618
    Anh TranAnh Tran
    Keymaster

    Hi,
    I'm afraid what you are asking are outside the scope of post meta. And that is not handled by Meta Box.

    However, I'm building a premium extension which can help you to create settings page, where you can add global data for all posts. It might fit your needs (it just doesn't have the same UI in all edit post page).

    PS: Do you want me to change your email?

    in reply to: Get Alt for caption slider #1614
    Anh TranAnh Tran
    Keymaster

    Hi, you can simply use the helper function rwmb_meta to retrieve alt text of the image, like this:

    $images = rwmb_meta( 'capa_evento', 'type=image&size=large' );
    foreach ( $images as $image )
    {
        echo "<li><img src='{$image['url']}' alt='{$image['alt']}' /></li>";
    }

    Your code is outdated, it was in old code of Meta Box.

    For more information about the helper function, please read the documentation here.

    in reply to: No Gallery 'type' => 'wysiwyg' #1610
    Anh TranAnh Tran
    Keymaster

    The rwmb_meta only returns the raw value of the field. It does not parse any shortcode or apply formats by default. In your case, you can make it parse shortcodes by:

    echo do_shortcode( rwmb_meta( 'field_id' ) );

Viewing 15 posts - 3,706 through 3,720 (of 3,958 total)