Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on the latest version of wordpress #27

Open
michelve opened this issue Apr 4, 2019 · 5 comments
Open

Not working on the latest version of wordpress #27

michelve opened this issue Apr 4, 2019 · 5 comments

Comments

@michelve
Copy link

michelve commented Apr 4, 2019

Current Code:

$cmb->add_field( array(
            'name'        => __( 'Button Link' ),
            'id'          => 'home_hero_button_link',
            'type'        => 'post_search_text', // This field type
            // post type also as array
            'post_type'   => ['page','product','post','topic','tips','nugget', 'forum','authors','faqs'],
            // Default is 'checkbox', used in the modal view to select the post type
            'select_type' => 'radio',
            // Will replace any selection with selection from modal. Default is 'add'
            'select_behavior' => 'replace',
        ) );

After i updated to wordpress the fields shows empty, the label shows but the input itself is not showing up

@tw2113
Copy link

tw2113 commented Apr 4, 2019

Any console errors in your browser dev tools?

@michelve
Copy link
Author

michelve commented Apr 5, 2019

@tw2113 - no errors in wplog file on console

console
Screen Shot 2019-04-05 at 11 20 24 AM

How it shows in wordpress (no input field)
Screen Shot 2019-04-05 at 11 20 07 AM

Screen Shot 2019-04-05 at 11 25 40 AM

@michelve
Copy link
Author

michelve commented Apr 5, 2019

here are some info:

cmb2 version: 2.5.1
wordpress version: 5.1.1
php: 7.2

@tw2113
Copy link

tw2113 commented Apr 6, 2019

Will try it out myself shortly, but is there any reason you're not updated to version 2.6.0 for CMB2? Just in case there may be fixes that help with it?

@tw2113
Copy link

tw2113 commented Apr 6, 2019

Not presently managing to recreate the issue myself with either CMB2 version 2.5.1 or 2.6.0. I did a fresh clone of the Post Search Field repo, since I didn't already have this one locally, so it's whatever version the master branch is at, which looks to be 0.2.5.

While there may not be any errors specific to CMB2 in the dev console, that doesn't mean that other errors shown aren't interfering in the long term. Is it a site where you could deactivate other things temporarily to see if the error goes away in those states?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants