Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,526 through 3,540 (of 3,702 total)
  • Author
    Posts
  • 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' ) );

    in reply to: Tabs inside Groups #1609
    Anh TranAnh Tran
    Keymaster

    Unfortunately, Tabs is not supported by Group extension. You can use Columns extension with Group. The UI of the tabs is too special and not suitable for groups.

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

    Can you please write in English?

    in reply to: Meta Box Not Showing Up #1601
    Anh TranAnh Tran
    Keymaster

    Hi,

    I don't see post_types parameter for the meta box. Please add this:

    'post_types' => 'page',
    'fields' => ... // Your fields here

    For more info about post_types, please check here.

    in reply to: Show an excerpt from a meta box? #1573
    Anh TranAnh Tran
    Keymaster

    If you just want to show, then you can use the custom_html field. This field can show any content in your meta box. You just need to pass $post->post_excerpt to its std attribute, like this:

    global $post;
    
    // Define meta box
    ...
    'fields' => array(
        array(
            'type' => 'custom_html',
            'std'  => $post->post_excerpt,
        ),
    )
    in reply to: Problems with date picker in group #1567
    Anh TranAnh Tran
    Keymaster

    I've just pushed a fix to Github. It will be in the core plugin in the next version (soon).

    Thanks for letting me know about the bug!

    in reply to: Problems with date picker in group #1566
    Anh TranAnh Tran
    Keymaster

    Let me check that again. By the way, are you using the stable version or development version on Github?

    in reply to: AutoNumber Group #1554
    Anh TranAnh Tran
    Keymaster

    I think this related with some custom Javascript. It's not something the plugin does by default.

    in reply to: include clonable meta-content in search #1553
    Anh TranAnh Tran
    Keymaster

    If the data is serialized (cloned fields), then there's no easy way to search with SQL.

    But if you want to search normal meta data, not serialized, you can do this by following this tutorial:

    http://www.deluxeblogtips.com/2012/04/search-all-custom-fields.html

    Another solution is using the plugin SearchWP. I haven't tested it yet, but from what it says, it can handle serialized and JSON data in the custom fields.

    in reply to: Wrong url path #1548
    Anh TranAnh Tran
    Keymaster

    Hi Ivo,

    Did you define 2 variables like this?

    define( 'RWMB_DIR', get_template_directory() . '/inc/plugins/meta-box/' );
    define( 'RWMB_URL', get_template_directory_uri() . '/inc/plugins/meta-box/' );

    Also, please check symlink on your installation. I guess your server has problem with it (it converts URL to real path on server).

    in reply to: Columns on groups not working with 'sort_clone' => true #1544
    Anh TranAnh Tran
    Keymaster

    OK, please let me know any problem if you have troubles using columns with groups in the future.

    in reply to: hide/show specific fields #1543
    Anh TranAnh Tran
    Keymaster

    Hi,

    The Show Hide extension does the show/hide job for meta boxes. It doesn't work for individual fields.

    If you want to control the visibility of individual fields, you should use the Conditional Logic. It's more powerful then Show Hide extension.

    in reply to: Radio input defaults #1542
    Anh TranAnh Tran
    Keymaster

    You can just set them in "std" attribute. The value is the default selected option.

Viewing 15 posts - 3,526 through 3,540 (of 3,702 total)