=== GeemBee Sync ===
Contributors: geembee
Tags: geembee, sync, google my business, gmb, posts
Requires at least: 5.0
Tested up to: 6.4
Stable tag: 1.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sync posts between GeemBee, WordPress, and Google Business Profile.

== Description ==

GeemBee Sync allows you to automatically synchronize Google Business Profile posts created in GeemBee to your WordPress website. It can also export newly published WordPress posts back to GeemBee so they can be published to Google Business Profile.

**Features:**

* Automatic sync of posts from GeemBee
* Manual sync option
* Configurable sync interval (5, 15, 30, 60 minutes)
* Featured image support
* Category mapping
* Post status support (draft, pending, publish, private)
* Optional WordPress to Google export for newly published posts

**Requirements:**

* A GeemBee account (https://geembee.com)
* WordPress site connected in GeemBee dashboard

== Installation ==

1. Upload the `geembee-sync` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Settings → GeemBee to configure the plugin
4. Enter your API credentials from the GeemBee dashboard

== Configuration ==

1. Log in to your GeemBee dashboard at https://geembee.com
2. Go to WordPress section
3. Add your WordPress site and copy the API credentials
4. In WordPress, go to Settings → GeemBee
5. Paste the API Endpoint, API Key, and API Secret
6. Enable Auto Sync if desired for GeemBee to WordPress sync
7. Enable WordPress to Google only after the target Google location is configured in GeemBee
8. Save settings

== Frequently Asked Questions ==

= Where do I get my API credentials? =

Log in to GeemBee at https://geembee.com, go to the WordPress section in your dashboard, and add your WordPress site. The API credentials will be displayed.

= How often does sync run? =

You can configure the sync interval in Settings → GeemBee. Options are every 5, 15, 30, or 60 minutes.

= Can I sync manually? =

Yes! Go to Settings → GeemBee and click the "Sync Now" button.

= Will old WordPress posts be exported to Google? =

No. Reverse sync only runs for regular posts when they are published for the first time after the feature is enabled.

== Changelog ==

= 1.1.0 =
* Add WordPress to GeemBee reverse sync for first-time publish events
* Store reverse sync status, import IDs, and Google post IDs in post meta
* Keep updates and historical posts from creating duplicate Google posts

= 1.0.0 =
* Initial release
* Automatic and manual sync
* Featured image support
* Category mapping
* Configurable sync interval

== Upgrade Notice ==

= 1.1.0 =
Adds optional WordPress to Google export. Enable it only after configuring the target location in GeemBee.

= 1.0.0 =
Initial release.
