Code Monkey home page Code Monkey logo

Comments (5)

mustardBees avatar mustardBees commented on August 16, 2024

Hi @leowski! I’m glad you’re making use of this plugin.

How are you building your front end form?

If you’re using CMB2’s "Bringing Metaboxes to the Front End” method, although untested, this field should work. Let me know if there are any issues.

If you’re writing something bespoke then feel free to pick apart this field for your specific use case.

from cmb_field_map.

leowski avatar leowski commented on August 16, 2024

Thanks for your quick answer!
That's what I thought. I already tried this solution without any success but it's not due to your plugin, I just can't display any metabox in my front end template.

I'm apparently missing something.

or should do the job right?

from cmb_field_map.

mustardBees avatar mustardBees commented on August 16, 2024

There is this note in the documentation:

Note: If you use cmb2_admin_init, like in the example_functions.php file, to register your metaboxes, they will not be available on the front end. Use cmb2_init instead.

from cmb_field_map.

leowski avatar leowski commented on August 16, 2024

Yeah I did checked this and I'm using "cmb2_init"

from cmb_field_map.

mustardBees avatar mustardBees commented on August 16, 2024

Where are you placing the form? You might need to specify the second parameter ($object_id) of cmb2_metabox_form(). Just thinking about the current page context, CMB2 takes the current post ID if it's not specified. Mind you, I'd expect to see the form either way :)

Without the rest of your code, it’s difficult to troubleshoot further! Let me know how you get on.

from cmb_field_map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.