Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,361 through 3,375 (of 3,702 total)
  • Author
    Posts
  • in reply to: Tabs #2581
    Anh TranAnh Tran
    Keymaster

    Hi again,

    I've just updated the extension. Now it supports tabs and native WordPress style. Please see the documentation here:

    https://metabox.io/docs/mb-settings-page/#section-using-tabs

    Hope you like it!

    in reply to: Field type->date doesn't work, for second and another group #2578
    Anh TranAnh Tran
    Keymaster

    Hi,

    Can you please try the development version on Github? We've made a big improvement for date/time fields.

    I tested with 1 group which has 2 date fields and it seems to work for me:

    http://prntscr.com/ajok6a

    in reply to: Cloning with programmatic data #2577
    Anh TranAnh Tran
    Keymaster

    Hi Sam,

    When is the data retrieved via Ajax? When editting a post?

    in reply to: Image Advanced #2576
    Anh TranAnh Tran
    Keymaster

    Sorry, here is the correct one:

    $group_values = rwmb_meta( 'rw_mygroup' );
    foreach ( $group_values as $group_value )
    {
    	echo '<div>
    		<div class="image"><img src="' . wp_get_attachment_image_url( reset( $group_value['rw_img'] ), 'thumbnail' ) . '" /></div>
    		<div>' . $group_value['rw_textfield1'] . '</div>
    		<div>' . $group_value['rw_textfield2'] . '</div>
    		<div>' . $group_value['rw_textfield3'] . '</div>
    	</div>';
    }
    in reply to: Fix for nesting groups #2574
    Anh TranAnh Tran
    Keymaster

    Hi aconway,

    Thanks again for your contribution. I've looked at your code and it works like a charm.

    The main thing here is "capture" the parent value of child field. You did that by assigning parent value to "parent_meta" key of the child field and get it back in the child_field_meta function. Althogh this works perfectly, this leads to a problem of redundant info as the parent value of 1 group is stored in ALL its children.

    So, I modified it a little by using a queue. The queue stores parent value. I use push/pop to add/retrieve parent value from the queue. Just 1 single variable to store all parent values. I think it's a little better in memory usage.

    The new version 1.0.7 is just released with this. Hope you enjoy it.

    Again, thanks a lot for your contribution!

    in reply to: Assign To Post Types "Post" or "Page" #2573
    Anh TranAnh Tran
    Keymaster

    This is done!

    in reply to: Assign To Post Types "Post" or "Page" #2562
    Anh TranAnh Tran
    Keymaster

    Hi, can you post your code to register meta boxes? The plugin supports all CPT, including post, of course.

    in reply to: Return value of rwmb_meta #2561
    Anh TranAnh Tran
    Keymaster

    Hi, you're right about rwmb_meta(). It returns the value stored in the meta value.

    If you want to retrieve the label, instead of value, you can use the internal helper function:

    rwmb_the_value( $field_id )

    This function accepts the same arguments as rwmb_meta and it displays the "meaningful" value to human.

    rwmb_the_value( $field_id, $args = array(), $post_id = null, $echo = true )

    in reply to: Fix for nesting groups #2560
    Anh TranAnh Tran
    Keymaster

    Thanks a lot, aconway! The reason it's hard to deal with is cloning. But it's still good if we have a solution for none-cloning groups. I will check your code and let you know.

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

    Yes, please. That would be very helpful.

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

    Hmm, the code for loading languages haven't been touched for a long time. Can you check if all text are not translated or only some of them?

    Also, can you try copying meta-box-nl_NL.po files from the plugin to '/wp-content/languages/plugins/' folder (please create if it doesn't exist) and see if it works?

    in reply to: Image Advanced #2537
    Anh TranAnh Tran
    Keymaster

    Hi Sergey Semenov,

    The value stored by image_advanced is attachment ID, so when you get them, you will receive an array of integers. (The helper function doesn't work pretty well for group at the moment and I will fix it soon so it can return more info of the image instead of just ID).

    In the meantime, please try this code:

    <?php $group_value = rwmb_meta( 'rw_mygroup' );
    foreach ( $group_value as $group_value )
    {
    
       	echo '<div>
          	 	<div class="image"><img src="' . wp_get_attachment_image_url( $group_value['rw_img'], 'thumbnail' ) . '" /></div>
    	   		<div>' . $group_value['rw_textfield1'] . '</div>
    	   		<div>' . $group_value['rw_textfield2'] . '</div>
    	   		<div>' . $group_value['rw_textfield3'] . '</div>
       	</div>';
    } ?>

    You can change the code to use different image size if you want.

    in reply to: Class 'RWMB_Core' not found #2536
    Anh TranAnh Tran
    Keymaster

    Can you try the latest version on Github? It has a fix for edge case, when WP is installed at document root. Not sure if that's the problem you're facing. If it doesn't work, can you send me info of your site (admin account and FTP) to check via the Contact form?

    in reply to: Not working! #2535
    Anh TranAnh Tran
    Keymaster

    Glad that it works for you. FYI: the rules are not applied for "default" page template as WP actually saves nothing to page info if it has default page template. So I think the "exclude" is the best approach here.

    in reply to: Include by category parent #2533
    Anh TranAnh Tran
    Keymaster

    Hi again,

    Sorry for long response. I've just updated the extension to 1.0.0 which includes support for parent terms :).

Viewing 15 posts - 3,361 through 3,375 (of 3,702 total)