Support Forum » User Profile

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • paul.fedorov@gmail.com[email protected]
    Participant

    We're using https://github.com/pressjitsu/pj-object-cache-red and there were no issues with it so far. Decided to let you know.

    in reply to: Taxonomy Advanced field with ajax? #16283
    paul.fedorov@gmail.com[email protected]
    Participant

    We got issues even with simpliest metaboxes, like this one

    [
            'name' => 'Пользователь',
            'id'   => 'user_id',
            'type' => 'user',
            'ajax' => false,
    ],

    it works only with ajax => false, With ajax enabled no user is found and there is error in console https://monosnap.com/file/J5md2FE1OMBzNqDI2jvle8Vp2c1QGd

    in reply to: Taxonomy Advanced field with ajax? #16276
    paul.fedorov@gmail.com[email protected]
    Participant

    Thanks a lot!
    Check your latest release please, I can't understand why but ajax fields aren't working. We get 400 error as response for them, and all is fine with 'ajax' => false,

    paul.fedorov@gmail.com[email protected]
    Participant

    That did the trick!
    Everything's working fine now, thank you

    paul.fedorov@gmail.com[email protected]
    Participant

    Hi Anh!
    Thanks for the quick reply, unfortunately it did not help.
    After a lengthy search, it turned out that the user had strange meta in the user_meta table.
    Like 'closedpostboxes_post','metaboxhidden_post','meta-boxorder_event', 'closedpostboxes_event', 'metaboxhidden_event', 'meta-box-order_post'
    Am delete it and now everything work fine
    mb you know what is?

    paul.fedorov@gmail.com[email protected]
    Participant

    I thought so too, but it only appears for Administrator roles after refreshing the page. Authors, Editors, etc - everybody else can't see it. That is strange but it is so.

    By the way - any ideas how to make fields appear at once, without refreshing the page? It was like that with classic editor. You choose a category and new fields appear.

    paul.fedorov@gmail.com[email protected]
    Participant

    Hi!
    We use this code to display fields

    [
                    'title'      => 'Поля обзоров матчей',
                    'post_types' => 'post',
                    'include' => array (
                        'category'    => [ self::$category_id ],
                    ),
                    'fields'     => [
                        [
                            'name'      => 'Состав команды 1',
                            'type'      => 'WYSIWYG',
                            'id'        => 'team_1_players',
                            'options'   => [ 'textarea_rows' => 4,  'teeny'=> true,'media_buttons' => false, 'raw'     => false,],
                        ],
                        [
                            'name'      => 'Состав команды 2',
                            'type'      => 'WYSIWYG',
                            'id'        => 'team_2_players',
                            'options'   => [ 'textarea_rows' => 4,  'teeny'  => true, 'media_buttons' => false, 'raw'     => false,]
                        ],
                        [
                            'name'      => 'Прогноз на матч',
                            'type'      => 'WYSIWYG',
                            'id'        => 'game_result_tip',
                            'options'   => [ 'textarea_rows' => 5,  'teeny'  => true, 'media_buttons' => false, 'raw'     => false,]
                        ],
                        [
                            'name'       => 'Матч',
                            'type'       => 'post',
                            'id'         => 'event_id',
                            'post_type'  => 'event',
                        ],
                    ],
                ]
Viewing 7 posts - 1 through 7 (of 7 total)