• Resolved David Foreman

    (@davros20)


    Hi There

    I have inherited a site using the old CMB, which has stopped working.

    Can I install this plugin instead? Will this work or do I need to manually upload all the CMB2 files via FTP into the theme folder.

    Not sure the best way to upgrade.

    Thanks
    Dave

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hey David,

    I definitely wouldn’t call it a manual upload and overwrite case for CMB.

    The biggest thing you’ll want to look at is https://github.com/CMB2/CMB2/wiki/Notable-Changes-in-CMB2 and probably look around https://github.com/CMB2/CMB2/wiki as a whole.

    The biggest changes are going to be prefixes on the hooks used. On top of that, the way new metaboxes are instantiated has changed to a more object orientated process rather than a passed around array. The field types should generally be the same, just how you set them changed.

    Look over the examples at https://github.com/CMB2/CMB2/blob/trunk/example-functions.php#L109 for a better idea on that part. Feel free to ask any questions you may have as well.

    Thread Starter David Foreman

    (@davros20)

    HI Michael,

    Thanks so much for the prompt response. Much appreciated.
    I’ll take a look at the docs.

    One quick question (that might save me a huge amount of time)

    The actual issue with CMB on the site is that the Select2 drop down on some of the pages that our client used to choose a page from a pages & posts list is the element that no longer works.
    They used to click this and be able to choose a page or post (via the dropdown, or by typing the page/post name to search) – the drop down then populated with the list of pages/posts so they can select one.

    Any idea on a quick fix as to why this may have stopped?

    I guess I could swap this out to a field where they manually have to paste in the URL rather than use the select2.

    Dave

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I guess I don’t recall Select2 being part of the old CMB library. I know there’s https://github.com/mustardBees/cmb-field-select2 and I think that may have been updated alongside the move to CMB2 as well, to ensure compatibility. Note that CMB2 itself doesn’t ship with Select2, we still leave that for 3rd parties.

    Regarding what’s going on with your current implementation, I’m curious if there’s some sort of javascript conflict going on that is preventing it from working as expected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CMB to CMB2 plugin’ is closed to new replies.