Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Begin

    (@bentalgad)

    I now see there is that plugin “CMB2-grid”. but it’s very complicated for just having two fields in the same row. isn’t there a simpler solution for that?

    Plugin Author Justin Sternberg

    (@jtsternberg)

    There is not a simpler solution built in currently. There is an example in the wiki for combining inputs in a single field: https://github.com/WebDevStudios/CMB2/wiki/Adding-your-own-field-types#example-4-multiple-inputs-one-field-lets-create-an-address-field

    But again, it’s not a core feature.

    Thread Starter Begin

    (@bentalgad)

    ok, thanks. i do think it’s kind of a must. i mean it’s a very basic need…

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Where are you rendering your specific fields? Is it a theme options page? or is it something on the frontend?

    CMB2 strives to keep things, out of the box, as close to WordPress Core layout/styling. You rarely see core pages with fields on the same rows, and the markup is often in at least one table.

    If you’re working with the frontend, you’d have a lot of freedom, and no aesthetic to generally follow, but you’d still need to work on the CSS a little.

    Thread Starter Begin

    (@bentalgad)

    I use it just for regular post edit page (adding custom fields).

    I think it’s a basic thing when creating custom fields. i don’t think there is a plugin that creates custom fields that doesn’t have the option to layout the fields with some width options and so… i actually am converting my custom fields from the “ACF” plugin, which does have this option, but is causing a lot of problems because of the way it writes to the database.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to put two fields on same row?’ is closed to new replies.