Linux 软件免费装
Banner图

SmartUpWorld Post Slider

开发者 smartupworld
更新时间 2026年10月8日 03:16
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode recent posts accessibility carousel post slider

下载

1.0.1 1.1.0

详情介绍:

SmartUpWorld Post Slider shows your posts as a responsive carousel of full-image cards. Paste one shortcode into any post, page, widget or template — no coding required — and adjust the look from the dashboard. Features: Accessibility The slider is built to meet WCAG 2.2 level AA: If you change the colours in the settings, keep text at a contrast ratio of at least 4.5:1 against its background, and keep the pause button on while autoplay is on. Performance Basic usage: [suwps_post_slider] With a header: [suwps_post_slider eyebrow="From The Blog" title="Latest Insights" subtitle="Practical guides on website care, speed and security."] For single post templates (skip current, no arrows): [suwps_post_slider title="Related Articles" count="6" skip="current" nav="false" underline="false"] Your own button text and colour: [suwps_post_slider readmore_text="Lees meer" accent="#2c6e49"] In a PHP template: <?php echo do_shortcode( '[suwps_post_slider]' ); ?> The Post Slider admin page lists every attribute with copy-ready examples. Full documentation: smartupworld.com/smartupworld-post-slider/ Third-party library The carousel is powered by Embla Carousel 8.6.0 by David Jerleke, released under the MIT License. The bundled file assets/js/embla-carousel.umd.js is the unmodified build from the official npm package; the human-readable source is at github.com/davidjerleke/embla-carousel. Its license is included as assets/js/embla-carousel-LICENSE.txt.

安装:

  1. Upload the smartupworld-post-slider folder to /wp-content/plugins/, or install it from Plugins → Add New.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Paste [suwps_post_slider] into any post, page, or widget.
  4. Visit Post Slider in your WordPress admin menu to choose what the cards show, set colours, and see every shortcode option.

屏幕截图:

  • Settings tab: show or hide each part of the cards, set the Read More label and pick the button colours.
  • Shortcode Guide tab with every attribute and copy-ready examples.

升级注意事项:

1.1.0 New design, a settings page, and a lighter, accessible carousel without jQuery. Sliders now fill their container by default, and custom CSS for the old suw- classes needs updating. 1.0.1 The shortcode tag changed to [suwps_post_slider]. Update any existing usage. 1.0.0 Initial release.

常见问题:

What shortcode do I use?

Use [suwps_post_slider] anywhere in your site. The admin Post Slider → Shortcode Guide tab lists every attribute with copy-ready examples.

How do I hide the date, author or category?

Untick them under Post Slider → Settings to hide them on every slider, or use date="false", author="false" or cat="false" on a single slider.

How do I change the colours?

Go to Post Slider → Settings → Button colours. For one slider only, use the accent attribute, for example accent="#2c6e49".

How do I change the "Read More" text?

Type your own label under Post Slider → Settings, or use readmore_text="Lees meer" on a single slider. Left empty, the label is translated automatically when a translation for your language is available.

Can I filter by category?

Yes. Use category="your-category-slug" or category="14" (numeric ID). Example: [suwps_post_slider category="tech" count="6"]

How do I show specific posts?

Use the ids attribute with comma-separated post IDs: [suwps_post_slider ids="12,45,67"]. The posts appear in that order. This overrides count and category.

Does it work on single post templates?

Yes. Add skip="current" to leave out the post being viewed, ideal for a "Related Articles" section.

Does it conflict with my theme's slider?

No. The plugin does not load Owl Carousel or jQuery and uses its own suwps- class names, so sliders from your theme or other plugins are not affected.

Can I turn autoplay off?

Yes: untick Autoplay in the settings, or use autoplay="false". With autoplay off, the pause button is not shown.

Can I make the slides change faster or slower?

Yes. Set Time per slide under Post Slider → Settings, from 2 to 15 seconds (4 by default). For one slider only, use the delay attribute in seconds, for example delay="6".

Why is there a pause button?

Content that moves on its own needs a way to stop it (WCAG 2.2.2). You can hide it under Post Slider → Settings, but your slider will then no longer meet that accessibility requirement while autoplay is on.

Where is the documentation?

Full documentation is at smartupworld.com/smartupworld-post-slider/. The admin Post Slider page also contains all attributes and copy-ready shortcode examples.

更新日志:

1.1.0 1.0.1 1.0.0