Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author htmlBurger

    (@htmlburger)

    Hey Florea,

    Regarding Tabify Edit Screen compatibility: as far as we see, Carbon Fields are mostly compatible with that plugin. There is a small issue however: containers are always displayed in the page after loading, even if they are not included in the first tab.

    In order to have that fixed the easy way, one would reload the first tab after everything has loaded. To do this, feel free to add this JS code to your admin code base: https://gist.github.com/tyxla/93c12725db270915ccb0

    To add this code to the administration, save it in a file and enqueue it by calling wp_enqueue_script() in a function, hooked to the admin_enqueue_scripts action. Please, don’t hesitate to ask if you need further details or a more complete example.

    Regarding bidirectional relationships: this is not implemented yet, but it sounds like a good feature that we might consider implementing a future version – thanks for the great idea.

    I added that script, but now all fields are on second tab and i have no way of splitting them on 2 (or more) tabs since they are not available on tabify’s settings page.

    Plugin Author htmlBurger

    (@htmlburger)

    Hi Florea,

    Can you please provide us with additional information on how your fields are setup?

    It would be useful for us to have details of the exact setup of tabs and boxes you’ve added within them, so we can attempt to reproduce the issue.

    Looking forward to your reply.

    This is the code:

    function my_carbon_fields_setup() {
    
    	Container::make('post_meta', 'group1')
    		->show_on_post_type('post')
    		->add_fields(array(
    			Field::make('text', 'cbr_field1', 'field1'),
    			Field::make('text', 'cbr_field2', 'field2'),
    		));
    
    	Container::make('post_meta', 'group2')
    		->show_on_post_type('post')
    		->add_fields(array(
    			Field::make('text', 'cbr_field3', 'field3'),
    			Field::make('textarea', 'cbr_field4', 'field4'),
    		));
    }
    add_action('carbon_register_fields', 'my_carbon_fields_setup');

    But i don’t see these groups/metaboxes in the tabify settings page.

    Plugin Author htmlBurger

    (@htmlburger)

    Hi Florea,

    While editing a post, click on the “Screen Options” in the top right portion of the screen. Are the “group1” and “group2” checkboxes enabled? Toggle them, just in case, so they get enabled.

    Does the issue persist after doing this? If yes, is there any error in the browser console?

    They are enabled and visible on post edit page (did toggle them off and back on).
    No errors in console.

    Still not visible in tabify settings.

    Plugin Author htmlBurger

    (@htmlburger)

    Hey Florea,

    This is weird. The boxes are visible in the “Tabify edit screen” settings page for us.

    Several more questions for you:
    1) Are you configuring the right post type in the Tabify edit screen settings (post)?
    2) Does the user you’re using have the administrator role?
    3) Have you selected any particular roles in the role fields of the tab?
    4) Are you using the latest version of Tabify edit screen?

    1. yes
    2. yes
    3. no
    4. yes

    I’m using xampp with php7 could it be that?

    LE: I have changed to php 5.6 and another wp install and i did see the fields on tabify but after creating a tab and saving they disappeared.

    Plugin Author htmlBurger

    (@htmlburger)

    Hey Florea,

    We believe this issue is out of the Carbon Fields plugin scope. Carbon Fields post meta container uses the native WordPress meta boxes, so it makes sense for them to work just like the default post meta boxes.

    I suggest that you post in the support forum of the Tabify Edit Screen plugin.

    And please let us know if we can assist in any other way.

    I found the problem, it’s the Favorites plugin.

    Just deactivating the plugin was not enough though, i had to clear the transients too, then the fields became visible.

    Thank you for the help.

    Plugin Author htmlBurger

    (@htmlburger)

    This is great news!

    Glad you were able to solve your issue.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Not compatible with Tabify Edit Screen’ is closed to new replies.