Post Story Carousel Block

外掛說明

The Post Story Carousel Block plugin allows you to display a carousel of posts similar to social media “stories.” Each post is shown as a story card with a featured image, title, subtitle, and author avatar, with customizable settings for layout, font styles, spacing, and more.

Key Features:

  • Display up to 20 posts in a carousel format.
  • Supports different post types, including posts and pages and custom post.
  • Customizable font sizes, font families, and colors for titles and subtitles.
  • Adjustable image size, including custom dimensions.
  • Select posts from specific categories or display the latest posts.
  • Option to define the number of posts shown and subtitle length.
  • Supports default and fallback images when no featured image is available.
  • Complete control over padding, margin, and spacing between story cards.

License

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.

This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this plugin; if not, see https://www.gnu.org/licenses/gpl-2.0.html.

螢幕擷圖

適用於區塊編輯器

這個外掛提供 1 個可供區塊編輯器使用的區塊。

  • Post Story Carousel

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use the block editor to add the “Post Story Carousel” block to your posts or pages.

常見問題集

How can I customize the appearance of the story cards?

You can adjust the font size, font family, font color, line height, padding, margin, and other settings in the block editor’s sidebar.

Can I choose which posts to display?

Yes, you can specify a post category in the block settings or leave it blank to display the latest posts. You can also choose the post type (posts or pages).

What happens if a post does not have a featured image?

If a post lacks a featured image, the plugin will display a default image from the assets folder (assets/img/default-story.jpg). You can change this image by modifying the file path in the block’s JavaScript code.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Post Story Carousel Block〉的開發相關工作。

參與者

將〈Post Story Carousel Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.0

  • Compatibility : WordPress 6.8
  • Fix : Third argument of wp_localize_script()
  • Fix : Few minor bugfix and improvements

1.0

  • Initial release of the plugin.
  • Added options for customizing font styles, image sizes, and spacing.
  • Fallback for default images if no featured image is set.
  • Added author avatars and basic post meta.