htmlBurger
Forum Replies Created
-
Forum: Plugins
In reply to: [Carbon Fields] Activate fields conditionallyHi @alexadark,
Your approach is great! In my opinion – don’t complicate things with OOP, its a simple problem that needs a simple solution.
If you have further questions, don’t hesitate to contact us.
Forum: Plugins
In reply to: [Carbon Fields] Complex Field’s ->set_min( $num ) workingHey @boquiabierto, thanks for the kind words! Glad you like the plugin.
About the
set_min()methods, it doesn’t force the user to add the fields, so it doesn’t pre-populate them, it’s just a limiter, but you can combine it withset_required()to force the user to populate the complex groups.Hope this answers your question.
If you want to make a suggestion or submit a bug report, please open a new Issue in our Github repository.
Forum: Plugins
In reply to: [Carbon Fields] Multiple categoryForum: Plugins
In reply to: [Carbon Fields] Hiding fields to the clientHi @alexadark,
A simple solution would be to just comment out the code that defines the fields, the values will still be in the database, so the front-end will render as expected.
Hope this helps.
Forum: Plugins
In reply to: [Carbon Fields] showing custom fields on front page@wp-user-487, we opened a github issue for your case, you can track the progress here: https://github.com/htmlburger/carbon-fields/issues/62
Hey @wp-user-487,
Unfortunately the
show_on_category()method is not working with multiple categories, but its a nice idea to allow for that, so thanks for the idea! We will consider adding this feature in a future version.Forum: Plugins
In reply to: [Carbon Fields] query post based on carbon field relationshipHey @excerptquestion,
Are you trying to get all the game posts for a particular newsbit?
If this is the case you can try the following:
$game_post_ids = carbon_get_the_post_meta( 'game' ); $game_posts = get_posts( array( 'post_type' => 'game', 'posts_per_page' => -1, 'post__in' => $game_post_ids, ) );Forum: Plugins
In reply to: [Carbon Fields] Field Width ProblemHey @jennzy, sorry for your trouble.
Can you please try the following
post-meta.phpcode and tell us if you still have this issue:<?php use Carbon_Fields\Container\Container; use Carbon_Fields\Field\Field; Container::make('post_meta', 'einrichtung') ->show_on_post_type('page') ->add_fields(array( Field::make('text', 'crb_einrichtung_header') ->set_width(50), Field::make('text', 'crb_einrichtung_name_01') ->set_width(50), Field::make('textarea', 'crb_einrichtung_text_01') ->set_rows(2), Field::make('text', 'crb_einrichtung_name_02'), Field::make('textarea', 'crb_einrichtung_text_02') ->set_rows(2), Field::make('text', 'crb_einrichtung_name_03'), Field::make('textarea', 'crb_einrichtung_text_03') ->set_rows(2), Field::make('text', 'crb_einrichtung_name_04'), Field::make('textarea', 'crb_einrichtung_text_04') ->set_rows(2), Field::make('text', 'crb_einrichtung_name_05'), Field::make('textarea', 'crb_einrichtung_text_05') ->set_rows(2), Field::make('text', 'crb_einrichtung_name_06'), Field::make('textarea', 'crb_einrichtung_text_06') ->set_rows(2), Field::make('text', 'crb_einrichtung_name_07'), Field::make('textarea', 'crb_einrichtung_text_07') ->set_rows(2), ));The result should look like this: https://cloud.githubusercontent.com/assets/1612178/17132708/9932d8d6-532b-11e6-8b8f-3578e305b767.jpg
Forum: Plugins
In reply to: [Carbon Fields] fields closed by defaultGlad you like it.
Please note that it’s still a work-in-progress feature, so it’s a good idea to take the
dev-masterversion once we merge the feature to the trunk.Forum: Plugins
In reply to: [Carbon Fields] api key for google mapIt’s the same plugin, however, we update the WordPress plugin when we have new major version(i.e. once every few months).
You can get the latest version of the plugin from GitHub.
Forum: Plugins
In reply to: [Carbon Fields] Google Map ApiKeyYou’re welcome.
Forum: Plugins
In reply to: [Carbon Fields] fields closed by defaultThat’s not supported at this point, however, we’re currently developing a new layout for this cases — it will be represented the complex field as tabbed user interface rather than like accordion.
You can take a look at the new version here: https://github.com/m1r0/carbon-fields
You can take advantage of this by calling
set_layout('tabbed')on the complex field.We should be able to merge that to the master repository next week.
Forum: Plugins
In reply to: [Carbon Fields] Load carbon fields with theme if plugin is not activeHere is what you need to do:
* download the latest version of the plugin from here: https://github.com/htmlburger/carbon-fields/archive/master.zip
* unzip the archive in your theme, e.g. in lib/carbon-fields directory
* in your functions.php file, you should require carbon-fields.php file from the theme(https://github.com/htmlburger/carbon-fields/blob/master/carbon-fields.php)Forum: Plugins
In reply to: [Carbon Fields] how to recover the image field in my front office ?You’re welcome!