RestPX
Seamlessly fetch and display posts from external WordPress sites via REST API. Features smart URL parsing for automatic Category and Language (Polylang) detection, fully responsive cards, and a dedicated Elementor widget
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/prangishviliabe/restpx/archive/refs/heads/main.zipReadme

RestPX - Elementor Add-on
RestPX is a powerful WordPress plugin and Elementor add-on that allows you to seamlessly fetch and display posts from external WordPress sites via the REST API. Perfect for aggregating content from multiple sites, creating news portals, or displaying related posts.
Features
- Smart URL Parsing: Automatically detects and handles:
- Language Detection: Supports Polylang prefixes (e.g.,
/en/,/ka/) for multilingual sites. - Category Filtering: Automatically filters posts when a Category URL is provided (e.g.,
/category/news/).
- Language Detection: Supports Polylang prefixes (e.g.,
- Elementor Integration: Dedicated widget with extensive customization options.
- Responsive Design: Beautiful, fully responsive post cards with featured images.
- Performance Optimized: Caches API responses to reduce load times and server requests.
- Flexible Templates: Multiple card layouts (default, minimal, overlay).
- Shortcode Support: Use via shortcode for non-Elementor pages.
Requirements
- WordPress 5.0 or higher
- Elementor 3.0 or higher
- PHP 7.4 or higher
Installation
Method 1: WordPress Admin
- Download the plugin ZIP from GitHub Releases.
- Go to WordPress Admin > Plugins > Add New > Upload Plugin.
- Upload the ZIP file and activate the plugin.
Method 2: Manual Upload
- Upload the plugin files to the
/wp-content/plugins/rest-api-postsdirectory. - Activate the plugin through the 'Plugins' screen in WordPress.
Usage
Elementor Widget
- Edit your page with Elementor.
- Drag the RestPX widget to your page.
- Configure the settings:
- API URL: Enter the URL of the external WordPress site.
- Example:
https://example.com/ - Specific Category:
https://example.com/category/news/ - Specific Language:
https://example.com/en/
- Example:
- Posts Count: Set the number of posts to display (1-400).
- Language: (Optional) JavaScript language fallback if not present in URL.
- Card Template: Choose from Default, Minimal, or Overlay styles.
- API URL: Enter the URL of the external WordPress site.
Shortcode
Use the shortcode in any post or page:
[restpx api_url="https://example.com" count="5" language="en"]
Changelog
Version 2.1.0
- Enhancement: Increased maximum posts limit from 20 to 400 for better content aggregation capabilities
Version 2.0.0
- Major Enhancement: Added comprehensive styling controls to Elementor widget, matching other Elementor widgets
- New Features:
- Advanced card styling (background colors, borders, shadows, spacing, hover effects)
- Image customization (height, border radius, borders)
- Enhanced typography controls for titles, dates, and excerpts
- Custom arrow uploads for navigation buttons
- Background options (colors, gradients, images) for the widget container
- Excerpt display toggle with full styling options
- UI Improvements: Expanded style tabs with organized sections for better user experience
Version 1.9.0
- Enhanced performance with improved caching
- Added new overlay card template
- Better error handling for API requests
- Updated Elementor compatibility
Version 1.7
- Initial release with basic functionality
- Smart URL parsing for categories and languages
- Elementor widget integration
- Responsive card designs
Support
For support, bug reports, or feature requests, please open an issue on GitHub.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
License
This plugin is licensed under the GPL v2 or later.
Author
Abe Prangishvili
- GitHub: @prangishviliAbe