How to ensure WordPress blog data is public?
To display your WordPress blog posts on external platforms using tools like SociableKIT, your WordPress site must allow public access to its REST API.
What is the WordPress REST API?
The REST API is a built-in feature of WordPress that enables external apps and services to retrieve your site’s data, including blog posts. If it’s disabled or blocked, your blog data won’t be accessible publicly.
How to Check if Your REST API is Enabled
To test if the REST API is publicly accessible:
- Open your browser.
- Go to this URL (replace with your actual website domain):
https://yourwebsite.com/wp-json/wp/v2/posts
- If you see a list of your blog posts in code format (JSON), your REST API is enabled.
If you see an error like “Access restricted” or “404 not found,” your REST API may be disabled or blocked.
How to Enable the REST API
Here are common ways to ensure the REST API is working properly:
- Check for Security Plugins Blocking Access
Some security or privacy plugins (like Wordfence, iThemes Security, or Disable REST API) might block the REST API.
- Go to your WordPress admin panel.
- Navigate to Plugins > Installed Plugins.
- Deactivate any plugins that may block the REST API.
- Alternatively, check the plugin’s settings for options to allow REST API access.
- Ensure Your Site is Public
- In the WordPress dashboard, go to Settings > Reading.
- Make sure "Discourage search engines from indexing this site" is unchecked.
built-in feature of WordPress that enables external apps and services to retrieve
- Fix .htaccess or Firewall Rules (for advanced users)
Custom rules in .htaccess
or server firewall settings may block API access. If you're not sure, contact your hosting provider for help.
Updated on: 08/03/2025
Thank you!