Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: Add new relationship order #28660

    Hi,

    did your team manage to have a look at this?

    Thanx!

    in reply to: Add new relationship order #26980

    Perfect, thanx! I hope they find a way to insert some kind of filter.

    in reply to: Add new relationship order #26917

    Hi,

    Thanx. I was hoping for a filter to make the new item always last.

    This line in storage.php makes it always first:
    order = isset( $orders[ $id ] ) ? $orders[ $id ] : 0;

    (If I change the 0 to 99 it does exactly what I need, but I was hoping to be able to do that using a filter/action)

    Best,

    AJ

    in reply to: Warning: Deprecated #24883

    Hi Long,

    yes, that's true. It's happening on my PHP8 testserver, my apologies for not mentioning that.
    Thanx for your reply!

    Best,

    Aart Jan

    in reply to: Date before 1970: timestamp is stored as positive #24098

    Hi!

    Thank you, I wasn't aware of that option. That certainly helps.

    Best,

    Aart Jan

    in reply to: Date before 1970: timestamp is stored as positive #24089

    I believe it has to do with the sanitize_datetime() function in sanitizer.php (line 237). The abs() seems unnecessary?

    in reply to: not flatten select #22621

    I think I found a solution: it works if the options array has keys:

    'fields' => [
                        [
                            'name' => 'Beroep',
                            'id' => 'profession',
                            'type' => 'select',
                            'flatten'=>false,
                            'options' => array(
                              'monkeys'=> array( 'value' => 'monkeys', 'label' => 'Monkeys' ),
                              'king_kong' => array( 'value' => 'king_kong', 'label' => 'King Kong', 'parent' => 'monkeys' ),
                              'curious_george' => array( 'value' => 'curious_george', 'label' => 'Curious George', 'parent' => 'monkeys' ),
                              'donkeys' => array( 'value' => 'donkeys', 'label' => 'Donkeys' ),
                              'eeyore' => array( 'value' => 'eeyore', 'label' => 'Eeyore', 'parent' => 'donkeys' ),
                              'guss' => array( 'value' => 'guss', 'label' => 'Gus', 'parent' => 'donkeys' ),
                             ),
                        ],
    in reply to: placeholder / title #21763

    Thanx, I now understand your way of looking at it.

    in reply to: TypeError: logics is undefined #19335

    Dear Anh,

    I managed to reproduce the error by entering this code in a WYSIWYG field with a 'hidden' condition:
    <header id="entry-header" class="entry__header yr-entry-header" data-rapid-sec="{&quot;entry-header&quot;:&quot;entry-header&quot;}"></header>

    Somehow this makes the value of the data-conditions attribute invalid JSON.

    (It turned out one of my co-workers pasted this messy HTML from another site in a WYSIWYG-field, this is part of the HTML)

    Hope this helps..?

    Best,

    AJ

    in reply to: TypeError: logics is undefined #19318

    P.S. this is the error thrown:

    conditional-logic.js?ver=1.5:221 Uncaught TypeError: Cannot read property 'relation' of undefined
        at isLogicCorrect (conditional-logic.js?ver=1.5:221)
        at HTMLScriptElement.<anonymous> (conditional-logic.js?ver=1.5:182)
        at Function.each (jquery.js?ver=1.12.4-wp:2)
        at jQuery.fn.init.each (jquery.js?ver=1.12.4-wp:2)
        at runConditionalLogic (conditional-logic.js?ver=1.5:177)
        at conditional-logic.js?ver=1.5:595
        at dispatch (jquery.js?ver=1.12.4-wp:3)
        at r.handle (jquery.js?ver=1.12.4-wp:3)
    in reply to: TypeError: logics is undefined #19317

    Hi all,

    same here. The code used to work fine, a few weeks ago.
    Quite normal setup, but in some cases this 'logics is undefined' error appears, making it impossible to use the controls.

    https://pastebin.com/SdksUKCM

    in reply to: No Admin Columns Showing #18257

    Sorry for the delay, yes, both fields and metaboxes appear with duplicate ID's.

    And that seems to be a way to solve this issue: different ID's for the metaboxes fixes the issue.

    Field ID's are still identical over multiple metabox-definitions, but that doesn't seem to matter, does it? It's because I use the same fields for different CPT's and I want to use separate classes (one per CPT) to define them. But in the templates, the field ID should ideally be identical.

    in reply to: No Admin Columns Showing #18177

    Hi,

    the order definitely does influence the appearance of the admin columns, but only the highest one remains visible. Our website had multiple calls to
    add_filter( 'rwmb_meta_boxes', function($metabox){$metabox[]=[....]}, 20);
    (one for each post-type)

    If I add both
    add_filter( 'rwmb_meta_boxes', function($metabox){$metabox[]=[....]}, 20);
    and
    add_filter( 'rwmb_meta_boxes', function($metabox){$metabox[]=[....]}, 21);
    all fields function properly, except the admin columns: only the admin columns in the highest one do appear.

    in reply to: No Admin Columns Showing #18062

    Did anyone ever find anything on this issue?
    I'm having similar issues at the moment, and it looks like it's related to the id in the main array ('general' in this example).
    On my setup it seems that only fields from an array where the 'id' is equal to the post-type slug are presented in the admin columns. But this is something recent, because I know quite certain that the field showed up a few months ago.

    Any thoughts?

    Best,

    AJ

    in reply to: Warning on metabox for relationship to multiple CPTs #16762

    Hi,

    thanx for your reply. Sorry to be stubborn, but it seems to work (apart from the warning). It would be great if it could be supported this way, because it would make the relationships between multiple cpt's much cleaner. Is there a technical/design reason not to support it this way?

    Also: in similar situations like in get_posts(), WordPress works the same, allowing both single post_types and arrays of post_types.

    Best,

    Aart Jan

Viewing 15 posts - 1 through 15 (of 16 total)