Marktplaats advertisement displayer for WordPress
A wordpress plugin
by Rohan de Graaf · github.com/profredrooster/marktplaats-listing-wp
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/profredrooster/marktplaats-listing-wp/archive/refs/heads/main.zipReadme
=== Marktplaats Advertisement Displayer for WordPress === Contributors: rohandeegraaf Tags: marktplaats, advertisements, WordPress, AJAX, shortcode Requires at least: 5.0 Tested up to: 6.3 Stable tag: 1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html
A simple WordPress plugin to display Marktplaats advertisements on your site using AJAX for dynamic loading.
== Description ==
This plugin allows you to display advertisements from Marktplaats on your WordPress site. It uses AJAX to dynamically load the listings after the page has loaded, ensuring a smooth user experience. A loading spinner is displayed while the listings are being fetched.
Features:
- Fetch advertisements from multiple Marktplaats URLs.
- Display listings in a modern card layout.
- AJAX-based dynamic loading with a loading spinner animation.
- Shortcodes to display all listings or the first three listings.
== Installation ==
- Upload the plugin folder to the
/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- Add the
[marktplaats_listings]shortcode to any page or post to display all listings. - Add the
[first_three_marktplaats_listings]shortcode to display only the first three listings.
== Usage ==
- Use
[marktplaats_listings]to display all listings dynamically with a loading spinner. - Use
[first_three_marktplaats_listings]to display the first three listings statically.
== Changelog ==
= 1.0 =
- Initial release.
- Added AJAX functionality for dynamic loading of listings.
- Added a loading spinner animation.
- Shortcodes for displaying all listings and the first three listings.
== Frequently Asked Questions ==
= Why are my listings not loading? =
Ensure that the AJAX request is working correctly. Check the browser console for errors and verify that the admin-ajax.php endpoint is accessible.
= Can I customize the loading spinner? =
Yes, you can modify the CSS in the assets/styles.css file to customize the spinner's appearance.
= How do I add more Marktplaats URLs? =
Edit the $urls array in the main.php file to add your own Marktplaats user URLs.
== License ==
This plugin is licensed under the GPLv2 or later.