Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterPlease check the field ID in the code. I didn't know which
$prefixyou used, so I usefootball_. Not sure if that's right.Anyway, do not just copy and paste the code ๐
February 7, 2018 at 12:02 PM in reply to: Php Error conflicts with Tribulant Newsletter Plugin #8480Anh Tran
KeymasterNo problem. New version with hot fix released.
February 7, 2018 at 11:31 AM in reply to: โ Conditional Logic not hidden in collapsible group. #8479Anh Tran
KeymasterHi, I've just tested the code. Sometimes the bug occurs, sometimes doesn't. I'll keep tracking on that.
Anh Tran
KeymasterHi,
I've just checked your code and found that the problem is the ID of the radio field, which is
type. As this is the radio field, there are actually 2 inputs with the same name. The JavaScript tries to *guess* the field using this selector[name*="type"]. It's ambiguous, and actually it returns *another WordPress field*, which is thepost_type(a hidden input).I'd suggest using prefix for your field's ID (as stated in the documentation). It's a good way to keep the field ID/name unique, and thus make the selector works. I've tried changing the ID from
typetotype123and it works.Please try and let me know how it goes.
Anh Tran
KeymasterSorry guys, I've fixed the plugin but forgot to update the version on metabox.io, so the Updater doesn't work. Please try it again, it should be ok now.
February 5, 2018 at 11:31 AM in reply to: โ Conditional Logic not hidden in collapsible group. #8454Anh Tran
KeymasterHello, can you describe the steps you get the bugs 2 and 3?
February 5, 2018 at 11:25 AM in reply to: MB Relationships - Updating when MB Updater is active breaks this extension #8453Anh Tran
KeymasterHi John,
The problem with the Updater is fixed. It's in the metabox.io system.
Regarding the stuffs in the admin list, yes, those are suggested. We also have Admin Columns plugin and I'll think a best way to do that.
Anh Tran
KeymasterYes, you can. After getting group value, you can sort sub-groups using a custom function, like this:
$group = get_post_meta( get_the_ID(), 'football_league_table_option', true ); usort( $group, function ( $a, $b ) { $score_a = $a['football_team_win_stat']; $score_b = $b['football_team_win_stat']; if ( $score_a == $score_b ) { return 0; } return ( $score_a > $score_b ) ? - 1 : 1; } ); $counter = 0; // other codeFebruary 5, 2018 at 10:38 AM in reply to: โ Drag and drop reordering will be hidden the content #8450Anh Tran
KeymasterHello, what content did you mean? Is it hidden when cloning or after cloning? Can you take a screenshot?
February 2, 2018 at 6:06 PM in reply to: post_id in hook rwmb_frontend_after_process is missing #8434Anh Tran
KeymasterHello, I've just added submitted post ID to the
$configvariable. Please update the plugin.February 1, 2018 at 2:56 PM in reply to: Prevent sortable nested group being able to be moved outside of its parent. #8424Anh Tran
KeymasterHi, I tried that and couldn't replicate the bug. Here is what I have:
Can you try again?
Anh Tran
KeymasterHi, currently it's not possible. You can show/hide the whole field only ๐
Anh Tran
KeymasterHi,
I think the problem comes from how you get the custom field data for categories. Basically, this loop:
foreach ( $cats as $cat ) { $term_id = $cat->term_id; }makes
$term_idis always the ID of the last category. No matter how many categories, it always get the last category.That's why you always see the same data. Please take a look at that.
February 1, 2018 at 11:57 AM in reply to: after update latest version of metabox plugin facet wp extension seems down.. #8420Anh Tran
KeymasterOops, I've just fixed it in version 1.0.1. Please update.
January 31, 2018 at 2:27 PM in reply to: Prevent sortable nested group being able to be moved outside of its parent. #8411 -
AuthorPosts