Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • AleAle
    Participant

    Email sent, thanks.

    AleAle
    Participant

    I re-uploaded one image and then that one and others start showing up, this is what I get with the images that are being displayed: array(1) { [0]=> string(4) "1227" }

    I've tried to re upload all images and the message Warning: Invalid argument supplied for foreach() randomly shows in some images every time I update.

    ??‍♂️

    AleAle
    Participant

    Here's the relevant part of the code.

    the line with Warning: Invalid argument supplied for foreach() is the one with:

    foreach ( $image_fields as $object_img ) {

    in reply to: group_title from field incfrementing value #13743
    AleAle
    Participant

    Thanks Anh! Works great.

    in reply to: group_title from field incfrementing value #13531
    AleAle
    Participant

    Thanks Anh.

    in reply to: Group not working properly #13507
    AleAle
    Participant

    Adding clone_default for every subfield did the trick, thanks.

    in reply to: Group not working properly #13362
    AleAle
    Participant

    This is great and std is working as expected.

    Not sure if I should open a new topic but now the values from a field inside a group aren't being copied when a field is in a group. Each clonable group has 'clone_default' => true

    in reply to: Reset default values #13361
    AleAle
    Participant

    Thanks Anh for your reply, I will try what you suggest.

    in reply to: Reset default values #13345
    AleAle
    Participant

    Any new reply on this? Thanks.

    in reply to: Parse error: syntax error, unexpected T_FUNCTION #13303
    AleAle
    Participant

    Thanks Anh Tran, as you guessed and after updating to PHP 7.0, the error has stopped showing.

    in reply to: Group not working properly #13175
    AleAle
    Participant

    I'm having similar issues with std values not being added, I've updated today
    MB Group to Version 1.2.18 and Metabox to Version 4.16.1.

    Is there any upcoming update that will fix this?

    in reply to: Password Protection and metaboxes #12627
    AleAle
    Participant

    Thanks, it works well but I am looking for a way that password protection applies to all registered metaboxes, otherwise I need to add the conditionals in every place that I display a metabox field.

    Is there such a way?

    in reply to: Password Protection and metaboxes #12577
    AleAle
    Participant

    This is my metabox

    The problem appears when I try to use metaboxes with a private or password protected post.

    Thanks!

    in reply to: Reset default values #12549
    AleAle
    Participant

    Hello Farheen,

    Sure no problem. A text field can be set with a default value using:

    'std' => 'The default text.'

    If I actually change the text field with anything other, I have no way to go back to the original default value, is there a way to add a button that resets the original default value?

    Thanks.

    in reply to: TypeError: selected.forEach is not a function #11870
    AleAle
    Participant

    Hello Anh,

    Interestingly, I've found that if set clone_default for the container groups to false, the TypeError error disappears.

    Could clone_default be what triggers this error?

    BTW, I've tried the previous code in a new WordPress installation with a TwentySeventeen and I still had the same TypeError problem.

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