• Resolved lmobile

    (@lmobile)


    Dear support

    we are setting up your plugin for testing. we now have the problem that we can not figure out how it is possible to post always as a event to gmb. We are using the calendarize it! plugin and creating there our event entrys. if i try to post such an event (has event date and time) it always is posted as a normal entry to gmb. is it possible to change that?

    Best regards Marc

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

    (@koen12344)

    Hi Marc,

    You can change the default GBP post type in Post to GMB > Settings > Auto-post settings. Simply switch it to the “Event” tab and save the settings. Your future posts will now be of the Event post type.

    The plugin does not support the Calenderize it plugin however, meaning it will not automatically pick up any event data from that plugin and use it in the GBP event post.

    You’d have to create a code snippet to import & convert the event data from the Calenderize It plugin into the Post to GMB plugin. Here’s an example for another event plugin.

    Feel free to contact me at [email protected] if you need this custom made.

    ~ Koen

    Thread Starter lmobile

    (@lmobile)

    Dear Koen

    thanks a lot for your answer. We modified the code and prelaced the woocommerce parts with them from calendarize it! plugin.

    <?php
    
    function pgmb_add_event_fields( $variables, $parent_post_id ) {
    	$event_start_date = get_post_meta( $parent_post_id, 'rhc_start', true );
    	$event_end_date = get_post_meta( $parent_post_id, 'rhc_end', true );
    	if ( ! $event_start_date || !$event_end_date ) {
    		return $variables;
    	}

    …….

    Where to put (the path) the file in your plugin?

    Best regards Marc

    Plugin Author Koen Reus

    (@koen12344)

    Hi @lmobile,

    I recommend using the Code Snippets plugin for this. If you add the snippet there and activate it sitewide it should work.

    ~ Koen

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calendarize it! Events and Post to Google my Business Plugin’ is closed to new replies.