In order to connect a WordPress blog to your application, first you must install the Muse mBaaS for WordPress plugin.
WordPress plugin Muse mBaaS is an extension of the JSON API plugin, which is used a lot by the WordPress community.
We use it to provide a secure exchange between your app and your blog, as well as to provide more flexibility in content synchronization.
Note: both plugins are compatible. If you already use JSON API for another service, it will stay compatible with the Muse mBaaS plugin.
Important: You can only synchronize public post content type.
WordPress Pages, events pages, and custom pages are not managed.
1. Install the Plugin
1. Go to the administration interface of your WordPress blog.
This interface is accessible via an URL like https://www.yourblog.com/wp-admin.
2. Login with your administrator password.
3. From the side menu, click on Plugins > Add new.
4. Type "Muse mBaaS" in the search field
5. Launch the search.
6. Identify the Muse mBaaS plugin in the search results (there should be only one, as in the following screenshot).
7. Click "Install Now"
8. Confirm that you want to begin the installation.
9. The installation is in process. Once it's finished, click the button"Activate plugin".
2. Retrieve your Muse mBaaS Key
The Muse mBaaS plugin is now installed on your WordPress.
1. In the side menu, click Settings > Muse mBaaS API
The Muse mBaaS Key is a string of figures that appears in bold on the configuration page of the Muse mBaaS plugin.
2. Copy Muse mBaaS key
3. Add a WordPress Section in your Muse mBaaS Backend
1. Go back to your backend, menu Content & Design > Content > Sections
2. Click Add a section on the top right
3. Select "WordPress".
4. Name the section
5. Fill in your Website URL*
6. Paste the Muse mBaaS API Key that you copied in step 2.2 above
7. Click "Save".
8. Optional: add filters to reflect the categories or subsections you have in your WordPress.
*In order to properly set up your WordPress, only use the absolute main website URL.
For example, use https://www.abc.com and not www.abc.com/categories/sections/news.
4. Muse mBaaS Plugin Options for WordPress
1. Go to the menu Settings > Muse mBaaS API in your WordPress back office
2. Optional: Disable comments:
You can disable comments to your WordPress blog directly from your application.
We don't recommend doing this because it can be frustrating for your readers.
To disable comments via the Muse mBaaS for WordPress plugin:
- Uncheck the box
- Click "Save".
NB: By default, this option is activated at the moment of plugin installation.
3. Optional: Securing communication
You can activate securing exchanges between your application and your WordPress blog, so only Muse mBaaS servers can communicate with the Muse mBaaS for the WordPress plugin.
To activate this option:
- Check the appropriate box
- Click "Save"
NB: By default, this option is deactivated at the moment of plugin installation.
5. Alternative (Advanced) Installation Method
If you can not follow the procedure described above, you can now install the Muse mBaaS for WordPress plugin in the same manner as any other WordPress plugin.
1. Download the plugin zip file from the WordPress plugin directory
2. Decompress it in the "wp-content/plugins" folder at the bottom of your blog by using your FTP client.
3. Once the plugin is installed, activate it in your WordPress backend.