Skip to content

Instantly share code, notes, and snippets.

@emohamed
Last active December 27, 2015 13:29
Show Gist options
  • Select an option

  • Save emohamed/7333334 to your computer and use it in GitHub Desktop.

Select an option

Save emohamed/7333334 to your computer and use it in GitHub Desktop.
<?php
Carbon_Container::factory('custom_fields', 'Offices')
->show_on_post_type('page')
->add_fields(array(
Carbon_Field::factory('text', 'sub_title'),
Carbon_Field::factory('complex', 'office_locations')
->add_fields('office', array(
Carbon_Field::factory('text', 'address'),
Carbon_Field::factory('date', 'added_on'),
Carbon_Field::factory('rich_text', 'description'),
))
));
@chrismccoy
Copy link
Copy Markdown

where can I get the carbon fields framework?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment