• Resolved artdevca

    (@artdevca)


    Hi there,

    We have a site using the Gutenberg editor. The ‘Auto-post to GMB’ toggle shows up on the default Post type, however it does not show up on any CPTs, even though they are checked off in the Post to GMB plugin settings.

    I installed the Classic Editor plugin as a test and when I edit a post in one of the CPTs in Classic TinyMCE mode the toggle shows as expected.

    Is there something we need to define in the creation of the CPT to get this to appear? Or is there a bug here that needs to be addressed?

    Thanks in advance for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Koen Reus

    (@koen12344)

    Hi @artdevca!

    Yes that is correct, it’s because the plugin requires custom fields to be enabled on post types in order for it to work within the Block Editor.

    You can add the support when registering your CPT by adding custom-fields to the supports array parameter like so:

    'public' => false,
    ...
    'supports' => array(
    	'title',
    	'custom-fields',
    ),
    ...

    Or by using the function add_post_type_support('your-cpt', 'custom-fields');

    That should bring the Post to Google My Business metabox and Auto-post checkbox to your CPT!

    ~ Koen

    Thread Starter artdevca

    (@artdevca)

    Brilliant – worked like a charm.

    Thank you so much for the super fast response! Have a good one!

    Plugin Contributor Koen Reus

    (@koen12344)

    Awesome, that’s good to hear! Happy to help. I’ll mark this is solved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.